fix permissions
This commit is contained in:
parent
ede4975b86
commit
3acb671855
2 changed files with 6 additions and 2 deletions
|
@ -25,7 +25,9 @@ dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem(
|
|||
'/' . preg_quote(dcCore::app()->adminurl->get('admin.plugin.activityReport')) . '(&.*)?$/',
|
||||
$_SERVER['REQUEST_URI']
|
||||
),
|
||||
dcCore::app()->auth->check(dcAuth::PERMISSION_ADMIN, dcCore::app()->blog->id)
|
||||
dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([
|
||||
dcAuth::PERMISSION_ADMIN,
|
||||
]), dcCore::app()->blog->id)
|
||||
);
|
||||
|
||||
if (dcCore::app()->activityReport->getSetting('active')) {
|
||||
|
|
|
@ -18,7 +18,9 @@ if (!defined('ACTIVITY_REPORT_V2')) {
|
|||
return null;
|
||||
}
|
||||
|
||||
dcPage::check(dcAuth::PERMISSION_ADMIN);
|
||||
dcPage::check(dcCore::app()->auth->makePermissions([
|
||||
dcAuth::PERMISSION_ADMIN,
|
||||
]));
|
||||
|
||||
$super = dcCore::app()->auth->isSuperAdmin() && !empty($_REQUEST['super']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue