less rude check

master
Jean-Christian Paul Denis 2021-10-28 23:07:17 +02:00
parent aac94f258b
commit 2a3323b79d
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 3 additions and 1 deletions

View File

@ -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(