From 2a3323b79d9d08e07f773d786382e80f17f59441 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 28 Oct 2021 23:07:17 +0200 Subject: [PATCH] less rude check --- _config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_config.php b/_config.php index 420d782..3f20ca4 100644 --- a/_config.php +++ b/_config.php @@ -14,9 +14,11 @@ if (!defined('DC_CONTEXT_MODULE')) { return null; } -if (!dPage::checkSuper()) { + +if (!$core->auth->isSuperAdmin()) { return null; } + if (!empty($_POST['save'])) { try { $core->blog->settings->dcAdvancedCleaner->dropEvery(