X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcommunity.php;h=4d98f0c4fa24d6dabd74ad7097bb34e1b240f168;hb=ae3d4f63a31c5a9f35c55e6507263a600867b55a;hp=3cafced5426469192c3fbfa3d4260e461fcb4f32;hpb=89e1fee01ed387469dfec50141c73267d8002856;p=friendica.git diff --git a/mod/community.php b/mod/community.php index 3cafced542..4d98f0c4fa 100644 --- a/mod/community.php +++ b/mod/community.php @@ -17,19 +17,11 @@ use Friendica\Database\DBA; use Friendica\Model\Item; use Friendica\Model\User; -function community_init(App $a) -{ - if (!local_user()) { - unset($_SESSION['theme']); - unset($_SESSION['mobile-theme']); - } -} - function community_content(App $a, $update = 0) { $o = ''; - if (Config::get('system', 'block_public') && !local_user() && !remote_user()) { + if (Config::get('system', 'block_public') && !Session::isAuthenticated()) { notice(L10n::t('Public access denied.') . EOL); return; } @@ -133,7 +125,7 @@ function community_content(App $a, $update = 0) 'default_location' => $a->user['default-location'], 'nickname' => $a->user['nickname'], 'lockstate' => (is_array($a->user) && (strlen($a->user['allow_cid']) || strlen($a->user['allow_gid']) || strlen($a->user['deny_cid']) || strlen($a->user['deny_gid'])) ? 'lock' : 'unlock'), - 'acl' => ACL::getFullSelectorHTML($a->user, true), + 'acl' => ACL::getFullSelectorHTML($a->page, $a->user, true), 'bang' => '', 'visitor' => 'block', 'profile_uid' => local_user(),