From a15254a1e2232a8dca67463fd31a0fabe6c2ca64 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 6 Oct 2025 20:42:27 +0000 Subject: [PATCH] remove check for current user and apply update --- Zotlabs/Update/_1264.php | 29 +++++++++++++++++++++++++++++ boot.php | 2 +- include/account.php | 4 ---- 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 Zotlabs/Update/_1264.php 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 075b4f928..b6b4d818a 100644 --- a/boot.php +++ b/boot.php @@ -73,7 +73,7 @@ define('PLATFORM_NAME', 'hubzilla'); define('STD_VERSION', '10.4.3'); 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 0c07bd85f..419d6789e 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'])) {