diff --git a/_admin.php b/_admin.php index 1b1326c..5ecf48a 100644 --- a/_admin.php +++ b/_admin.php @@ -240,13 +240,10 @@ class adminPeriodical 'url' => dcCore::app()->adminurl->get('admin.plugin.periodical'), 'small-icon' => dcPage::getPF('periodical/icon.svg'), 'large-icon' => dcPage::getPF('periodical/icon.svg'), - 'permissions' => dcCore::app()->auth->check( - dcCore::app()->auth->makePermissions([ - dcAuth::PERMISSION_USAGE, - dcAuth::PERMISSION_CONTENT_ADMIN, - ]), - dcCore::app()->blog->id - ), + 'permissions' => dcCore::app()->auth->makePermissions([ + dcAuth::PERMISSION_USAGE, + dcAuth::PERMISSION_CONTENT_ADMIN, + ]), ]); } diff --git a/inc/class.periodical.php b/inc/class.periodical.php index b99c6de..2474078 100644 --- a/inc/class.periodical.php +++ b/inc/class.periodical.php @@ -226,7 +226,7 @@ class periodical $params['sql'] .= 'AND T.periodical_id ' . $this->con->in($params['periodical_id']); unset($params['periodical_id']); } - if (dcCore::app()->auth->check(dcAuth::PERMISSION_ADMIN, dcCore::app()->blog->id)) { + if (dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_ADMIN]), dcCore::app()->blog->id)) { if (isset($params['post_status'])) { if ($params['post_status'] != '') { $params['sql'] .= 'AND P.post_status = ' . (int) $params['post_status'] . ' '; diff --git a/inc/lib.index.pager.php b/inc/lib.index.pager.php index 720da64..ae3f7b3 100644 --- a/inc/lib.index.pager.php +++ b/inc/lib.index.pager.php @@ -172,7 +172,7 @@ class adminPeriodicalList extends adminGenericList private function postLine($checked) { - if (dcCore::app()->auth->check(dcAuth::PERMISSION_CATEGORIES, dcCore::app()->blog->id)) { + if (dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_CATEGORIES]), dcCore::app()->blog->id)) { $cat_link = '%s'; } else { $cat_link = '%2$s';