diff --git a/Zotlabs/Update/_1264.php b/Zotlabs/Update/_1264.php new file mode 100644 index 000000000..cfdb58a0e --- /dev/null +++ b/Zotlabs/Update/_1264.php @@ -0,0 +1,29 @@ + '2025-06-24 00:00:00' AND account_email <> '%s'", + dbesc($admin_email) + ); + + if($r) { + dbq("COMMIT"); + return UPDATE_SUCCESS; + } + + dbq("ROLLBACK"); + return UPDATE_FAILED; + + } + +} diff --git a/boot.php b/boot.php index 31b5e374e..8b43cfe77 100644 --- a/boot.php +++ b/boot.php @@ -73,7 +73,7 @@ define('PLATFORM_NAME', 'hubzilla'); define('STD_VERSION', '10.5.8'); define('ZOT_REVISION', '6.0'); -define('DB_UPDATE_VERSION', 1263); +define('DB_UPDATE_VERSION', 1264); define('PROJECT_BASE', __DIR__); diff --git a/include/account.php b/include/account.php index 276d259d8..9b859432c 100644 --- a/include/account.php +++ b/include/account.php @@ -145,10 +145,6 @@ function check_account_invite($invite_code) { } function check_account_admin($arr) { - if (is_site_admin()) { - return true; - } - $admin_email = trim(Config::Get('system','admin_email')); if (strlen($admin_email) && $admin_email === trim($arr['reg_email'])) {