less rude check

This commit is contained in:
Jean-Christian Paul Denis 2021-10-28 23:07:17 +02:00
parent aac94f258b
commit 2a3323b79d
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -14,9 +14,11 @@
if (!defined('DC_CONTEXT_MODULE')) { if (!defined('DC_CONTEXT_MODULE')) {
return null; return null;
} }
if (!dPage::checkSuper()) {
if (!$core->auth->isSuperAdmin()) {
return null; return null;
} }
if (!empty($_POST['save'])) { if (!empty($_POST['save'])) {
try { try {
$core->blog->settings->dcAdvancedCleaner->dropEvery( $core->blog->settings->dcAdvancedCleaner->dropEvery(