mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
FIX Allow users with the CMS_ACCESS_LeftAndMain permission to be added
This commit is contained in:
parent
b3d8f8817c
commit
a821edf8d7
@ -130,6 +130,7 @@ class ContentReviewDefaultSettings extends DataExtension
|
|||||||
|
|
||||||
$users = Permission::get_members_by_permission([
|
$users = Permission::get_members_by_permission([
|
||||||
'CMS_ACCESS_CMSMain',
|
'CMS_ACCESS_CMSMain',
|
||||||
|
'CMS_ACCESS_LeftAndMain',
|
||||||
'ADMIN',
|
'ADMIN',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
|||||||
$options
|
$options
|
||||||
);
|
);
|
||||||
|
|
||||||
$users = Permission::get_members_by_permission(["CMS_ACCESS_CMSMain", "ADMIN"]);
|
$users = Permission::get_members_by_permission(['CMS_ACCESS_CMSMain', 'CMS_ACCESS_LeftAndMain', 'ADMIN']);
|
||||||
|
|
||||||
$usersMap = $users->map("ID", "Title")->toArray();
|
$usersMap = $users->map("ID", "Title")->toArray();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user