X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=a4d0fe5c735e3c2be51e36115490ff93dc229f62;hb=9d883f7933df3d6b0108caa9299fd3cca3af3c59;hp=1a28aa8ce594965c08f209d21198e4ab30bfb7c2;hpb=fc283ab92858238a5a55f24b1d1650bb72068b7d;p=friendica.git diff --git a/boot.php b/boot.php index 1a28aa8ce5..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->getUserValue('email') ?? '', $adminlist); + return local_user() && $admin_email && DBA::exists('user', ['uid' => $a->getLoggedInUserId(), 'email' => $adminlist]); } /**