mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge pull request #155 from creative-commoners/pulls/4.3/all-sections
FIX Allow users with the CMS_ACCESS_LeftAndMain permission to be added
This commit is contained in:
commit
55d52cb7dc
@ -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