X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FACL.php;h=64e03d47190e752902d99351fbf191ba3ab789ac;hb=b2ae39db1a41812ca5f67ea20a661b8fdda38ad4;hp=83fae423ac920aeb6aa6113fad96dcaf35e7e420;hpb=ca0a961ad2d2013aa4bea9df0c3e9daa1acecc01;p=friendica.git diff --git a/src/Core/ACL.php b/src/Core/ACL.php index 83fae423ac..64e03d4719 100644 --- a/src/Core/ACL.php +++ b/src/Core/ACL.php @@ -335,6 +335,10 @@ class ACL extends BaseObject */ public static function getFullSelectorHTML(Page $page, array $user = null, bool $for_federation = false, array $default_permissions = []) { + if (empty($user['uid'])) { + return ''; + } + $page->registerFooterScript(Theme::getPathForFile('asset/typeahead.js/dist/typeahead.bundle.js')); $page->registerFooterScript(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput.js')); $page->registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput.css'));