X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=a4d0fe5c735e3c2be51e36115490ff93dc229f62;hb=ad6d11b371f90d925d13b6db523d6233346c8404;hp=ecf59eb2fc587140cfd5e1dbd50049a754286e4d;hpb=69c75daf4f9173573bcfece08a1040612de88c1d;p=friendica.git diff --git a/boot.php b/boot.php index ecf59eb2fc..a4d0fe5c73 100644 --- a/boot.php +++ b/boot.php @@ -38,7 +38,7 @@ use Friendica\Util\DateTimeFormat; define('FRIENDICA_PLATFORM', 'Friendica'); define('FRIENDICA_CODENAME', 'Siberian Iris'); -define('FRIENDICA_VERSION', '2021.09-dev'); +define('FRIENDICA_VERSION', '2021.12-dev'); define('DFRN_PROTOCOL_VERSION', '2.23'); define('NEW_TABLE_STRUCTURE_VERSION', 1288); @@ -379,7 +379,7 @@ function is_site_admin() $adminlist = explode(',', str_replace(' ', '', $admin_email)); - return local_user() && $admin_email && in_array($a->user['email'] ?? '', $adminlist); + return local_user() && $admin_email && DBA::exists('user', ['uid' => $a->getLoggedInUserId(), 'email' => $adminlist]); } /**