NEW Change "only these people" to "only these groups" in permissions

This commit is contained in:
Robbie Averill 2017-07-03 21:37:15 +12:00
parent 184ec65b7f
commit 4c1dbd402b
3 changed files with 4 additions and 4 deletions

View File

@ -2004,7 +2004,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
InheritedPermissions::LOGGED_IN_USERS => _t(__CLASS__.'.ACCESSLOGGEDIN', "Logged-in users"),
InheritedPermissions::ONLY_THESE_USERS => _t(
__CLASS__.'.ACCESSONLYTHESE',
"Only these people (choose from list)"
"Only these groups (choose from list)"
),
];
$viewersOptionsField->setSource($viewersOptionsSource);

View File

@ -164,7 +164,7 @@ en:
ACCESSANYONE: Anyone
ACCESSHEADER: 'Who can view this page?'
ACCESSLOGGEDIN: 'Logged-in users'
ACCESSONLYTHESE: 'Only these people (choose from list)'
ACCESSONLYTHESE: 'Only these groups (choose from list)'
ADDEDTODRAFTHELP: 'Page has not been published yet'
ADDEDTODRAFTSHORT: Draft
APPEARSVIRTUALPAGES: 'This content also appears on the virtual pages in the {title} sections.'

View File

@ -29,7 +29,7 @@ Feature: Manage global page permissions
Then I should see "Welcome"
Scenario: I can limit global view permissions to certain groups
Given I select "Only these people (choose from list)" from "Who can view pages on this site?" input group
Given I select "Only these groups (choose from list)" from "Who can view pages on this site?" input group
And I select "AUTHOR group" from "Viewer Groups" with javascript
And I press the "Save" button
When I am not logged in
@ -50,7 +50,7 @@ Feature: Manage global page permissions
And pages should be editable by "ADMIN"
Scenario: I can limit global edit permissions to certain groups
Given I select "Only these people (choose from list)" from "Who can edit pages on this site?" input group
Given I select "Only these groups (choose from list)" from "Who can edit pages on this site?" input group
And I select "ADMIN group" from "Editor Groups" with javascript
And I press the "Save" button
Then pages should not be editable by "AUTHOR"