X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=9c3be4a4292aa14f0f14b80fb8c0814d7f33a468;hb=a19a7dc2a0c0a22fd306e162383ef7117c1baca2;hp=ecf59eb2fc587140cfd5e1dbd50049a754286e4d;hpb=e34795762d72347746bd506f253495da7d0ab329;p=friendica.git diff --git a/boot.php b/boot.php index ecf59eb2fc..9c3be4a429 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.09-rc'); 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]); } /**