mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
NEW Change "only these people" to "only these groups" in permissions
This commit is contained in:
parent
184ec65b7f
commit
4c1dbd402b
@ -2004,7 +2004,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
|||||||
InheritedPermissions::LOGGED_IN_USERS => _t(__CLASS__.'.ACCESSLOGGEDIN', "Logged-in users"),
|
InheritedPermissions::LOGGED_IN_USERS => _t(__CLASS__.'.ACCESSLOGGEDIN', "Logged-in users"),
|
||||||
InheritedPermissions::ONLY_THESE_USERS => _t(
|
InheritedPermissions::ONLY_THESE_USERS => _t(
|
||||||
__CLASS__.'.ACCESSONLYTHESE',
|
__CLASS__.'.ACCESSONLYTHESE',
|
||||||
"Only these people (choose from list)"
|
"Only these groups (choose from list)"
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
$viewersOptionsField->setSource($viewersOptionsSource);
|
$viewersOptionsField->setSource($viewersOptionsSource);
|
||||||
|
@ -164,7 +164,7 @@ en:
|
|||||||
ACCESSANYONE: Anyone
|
ACCESSANYONE: Anyone
|
||||||
ACCESSHEADER: 'Who can view this page?'
|
ACCESSHEADER: 'Who can view this page?'
|
||||||
ACCESSLOGGEDIN: 'Logged-in users'
|
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'
|
ADDEDTODRAFTHELP: 'Page has not been published yet'
|
||||||
ADDEDTODRAFTSHORT: Draft
|
ADDEDTODRAFTSHORT: Draft
|
||||||
APPEARSVIRTUALPAGES: 'This content also appears on the virtual pages in the {title} sections.'
|
APPEARSVIRTUALPAGES: 'This content also appears on the virtual pages in the {title} sections.'
|
||||||
|
@ -29,7 +29,7 @@ Feature: Manage global page permissions
|
|||||||
Then I should see "Welcome"
|
Then I should see "Welcome"
|
||||||
|
|
||||||
Scenario: I can limit global view permissions to certain groups
|
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 select "AUTHOR group" from "Viewer Groups" with javascript
|
||||||
And I press the "Save" button
|
And I press the "Save" button
|
||||||
When I am not logged in
|
When I am not logged in
|
||||||
@ -50,7 +50,7 @@ Feature: Manage global page permissions
|
|||||||
And pages should be editable by "ADMIN"
|
And pages should be editable by "ADMIN"
|
||||||
|
|
||||||
Scenario: I can limit global edit permissions to certain groups
|
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 select "ADMIN group" from "Editor Groups" with javascript
|
||||||
And I press the "Save" button
|
And I press the "Save" button
|
||||||
Then pages should not be editable by "AUTHOR"
|
Then pages should not be editable by "AUTHOR"
|
||||||
|
Loading…
Reference in New Issue
Block a user