less rude check
This commit is contained in:
parent
aac94f258b
commit
2a3323b79d
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user