|
|
@@ -329,10 +329,6 @@ class OtAuthenticationService extends AbstractAuthenticationService
|
|
|
// Get user's data from the API
|
|
|
$userApiData = $this->getUserData();
|
|
|
|
|
|
- // <--- TODO: remove this, for tests only
|
|
|
- $userApiData['accesses'][0]['typo3_editor'] = true;
|
|
|
- // --->
|
|
|
-
|
|
|
if (empty($userApiData)) {
|
|
|
// An error happened, and even if the user was logged, we can not continue
|
|
|
// (user's data and rights could have changed)
|
|
|
@@ -372,7 +368,7 @@ class OtAuthenticationService extends AbstractAuthenticationService
|
|
|
// Loop over the accesses of the user to list the matching organization groups
|
|
|
if ($userApiData['accesses']) {
|
|
|
foreach ($userApiData['accesses'] as $accessData) {
|
|
|
- if ($isBackend && !$accessData['typo3_editor']) {
|
|
|
+ if ($isBackend && !$accessData['isEditor']) {
|
|
|
continue;
|
|
|
}
|
|
|
|