Project

General

Profile

Actions

Bug #89633

closed

BE user in FE context

Added by Roman Büchler about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2019-11-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using the context API to retrieve information regarding a logged in BE user the information is just valid in case a admin-be-user is logged in. The following just works for admin-be-users:

$context = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Context\Context::class);
$beUserLoggedIn = $context->getPropertyFromAspect('backend.user', 'isLoggedIn');
Actions

Also available in: Atom PDF