fix permissions
parent
50cc374a61
commit
13bf194e61
11
_admin.php
11
_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,
|
||||
]),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -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'] . ' ';
|
||||
|
|
|
@ -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 = '<a href="category.php?id=%s">%s</a>';
|
||||
} else {
|
||||
$cat_link = '%2$s';
|
||||
|
|
Loading…
Reference in New Issue