fix permissions
This commit is contained in:
parent
c0868e6532
commit
b546df90eb
@ -34,7 +34,7 @@ dcCore::app()->addBehavior('adminDashboardFavoritesV2', function (dcFavorites $f
|
||||
'url' => dcCore::app()->adminurl->get('admin.plugin.enhancePostContent'),
|
||||
'small-icon' => urldecode(dcPage::getPF('enhancePostContent/icon.svg')),
|
||||
'large-icon' => urldecode(dcPage::getPF('enhancePostContent/icon.svg')),
|
||||
'permissions' => dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_CONTENT_ADMIN]), dcCore::app()->blog->id),
|
||||
'permissions' => dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_CONTENT_ADMIN]),
|
||||
]);
|
||||
});
|
||||
|
||||
|
@ -21,7 +21,9 @@ $this->registerModule(
|
||||
'2022.11.20',
|
||||
[
|
||||
'requires' => [['core', '2.24']],
|
||||
'permissions' => dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||
'permissions' => dcCore::app()->auth->makePermissions([
|
||||
dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||
]),
|
||||
'type' => 'plugin',
|
||||
'support' => 'https://github.com/JcDenis/enhancePostContent',
|
||||
'details' => 'https://plugins.dotaddict.org/dc2/details/enhancePostContent',
|
||||
|
@ -14,7 +14,9 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
dcPage::check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_CONTENT_ADMIN]));
|
||||
dcPage::check(dcCore::app()->auth->makePermissions([
|
||||
dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||
]));
|
||||
|
||||
# -- Prepare queries and object --
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user