]> git.mxchange.org Git - friendica.git/blobdiff - mod/settings.php
Issue 2657: Mentions will now be recognized by clients
[friendica.git] / mod / settings.php
index e24127cbb56a1ecfa2d27a32ba60e91649ee7ba6..45f5f96c54ed3967793c879a01c6d896faaeca69 100644 (file)
@@ -26,7 +26,6 @@ use Friendica\Content\Nav;
 use Friendica\Core\Hook;
 use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
-use Friendica\Core\Session;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Item;
@@ -52,7 +51,7 @@ function settings_post(App $a)
                return;
        }
 
-       if (!empty($_SESSION['submanage'])) {
+       if (DI::userSession()->getSubManagedUserId()) {
                return;
        }
 
@@ -153,7 +152,7 @@ function settings_content(App $a)
                return Login::form();
        }
 
-       if (!empty($_SESSION['submanage'])) {
+       if (DI::userSession()->getSubManagedUserId()) {
                DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.'));
                return '';
        }