]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Remove spaces
[friendica.git] / boot.php
index c71c16b354e3bac9609b99e4081d6d3f5d5451fd..7ee023b68a34328e95680f23b558e77c191d7080 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -379,7 +379,7 @@ function is_site_admin()
 
        $adminlist = explode(',', str_replace(' ', '', $admin_email));
 
-       return local_user() && $admin_email && DBA::exists('user', ['uid' => $a->getUserId(), 'email' => $adminlist]);
+       return local_user() && $admin_email && DBA::exists('user', ['uid' => $a->getLoggedInUserId(), 'email' => $adminlist]);
 }
 
 /**