fix permissions
parent
ab1b4ab8c8
commit
fe6c9a520b
|
@ -14,7 +14,7 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
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)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,9 @@ $this->registerModule(
|
||||||
'2022.11.28',
|
'2022.11.28',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.24']],
|
'requires' => [['core', '2.24']],
|
||||||
'permissions' => dcAuth::PERMISSION_ADMIN,
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
|
dcAuth::PERMISSION_ADMIN,
|
||||||
|
]),
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://github.com/JcDenis/postslistOptions',
|
'support' => 'https://github.com/JcDenis/postslistOptions',
|
||||||
'details' => 'https://plugins.dotaddict.org/dc2/details/postslistOptions',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/postslistOptions',
|
||||||
|
|
Loading…
Reference in New Issue