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:
Sabina Talipova 2022-09-15 15:14:52 +12:00 committed by GitHub
commit 55d52cb7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();