fix permissions
parent
50cc374a61
commit
13bf194e61
|
@ -240,13 +240,10 @@ class adminPeriodical
|
||||||
'url' => dcCore::app()->adminurl->get('admin.plugin.periodical'),
|
'url' => dcCore::app()->adminurl->get('admin.plugin.periodical'),
|
||||||
'small-icon' => dcPage::getPF('periodical/icon.svg'),
|
'small-icon' => dcPage::getPF('periodical/icon.svg'),
|
||||||
'large-icon' => dcPage::getPF('periodical/icon.svg'),
|
'large-icon' => dcPage::getPF('periodical/icon.svg'),
|
||||||
'permissions' => dcCore::app()->auth->check(
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
dcCore::app()->auth->makePermissions([
|
|
||||||
dcAuth::PERMISSION_USAGE,
|
dcAuth::PERMISSION_USAGE,
|
||||||
dcAuth::PERMISSION_CONTENT_ADMIN,
|
dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||||
]),
|
]),
|
||||||
dcCore::app()->blog->id
|
|
||||||
),
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,7 @@ class periodical
|
||||||
$params['sql'] .= 'AND T.periodical_id ' . $this->con->in($params['periodical_id']);
|
$params['sql'] .= 'AND T.periodical_id ' . $this->con->in($params['periodical_id']);
|
||||||
unset($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 (isset($params['post_status'])) {
|
||||||
if ($params['post_status'] != '') {
|
if ($params['post_status'] != '') {
|
||||||
$params['sql'] .= 'AND P.post_status = ' . (int) $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)
|
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>';
|
$cat_link = '<a href="category.php?id=%s">%s</a>';
|
||||||
} else {
|
} else {
|
||||||
$cat_link = '%2$s';
|
$cat_link = '%2$s';
|
||||||
|
|
Loading…
Reference in New Issue