FIX Allow users with the CMS_ACCESS_LeftAndMain permission to be added

This commit is contained in:
Steve Boyd 2021-09-14 13:53:25 +12:00
parent b3d8f8817c
commit a821edf8d7
2 changed files with 2 additions and 1 deletions

View File

@ -130,6 +130,7 @@ class ContentReviewDefaultSettings extends DataExtension
$users = Permission::get_members_by_permission([
'CMS_ACCESS_CMSMain',
'CMS_ACCESS_LeftAndMain',
'ADMIN',
]);

View File

@ -397,7 +397,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
$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();