]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseAdmin.php
Move mod/cal.php and mod/events.php to Module
[friendica.git] / src / Module / BaseAdmin.php
index 7088bd7d6f610e4f06260cafbf1affee7408cc14..1c9fc0f2446ab41759eaa85cfe58ab567a7c3206 100644 (file)
@@ -63,7 +63,7 @@ abstract class BaseAdmin extends BaseModule
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('You don\'t have access to administration pages.'));
                }
 
-               if (!empty($_SESSION['submanage'])) {
+               if (DI::userSession()->getSubManagedUserId()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Submanaged account can\'t access the administration pages. Please log back in as the main account.'));
                }
        }