mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ca6d92341e
API CHANGE Changed SiteTree->ViewersGroup has_one relationship to SiteTree->ViewerGroups has_many relationship (see #2847) API CHANGE Changed SiteTree->EditorsGroup has_one relationship to SiteTree->EditorGroups has_many relationship (see #2847) ENHANCEMENT Added 'Inherit' flag to SiteTree->CanViewType and SiteTree->CanEditType (see #2419) ENHANCEMENT Added unit tests for SiteTree permissions BUGFIX Checking recursively for permissions on children with SiteTree->canDelete() BUGFIX Disallow SiteTree->canEdit() if SiteTree->canView() is not granted Note: Use dev/tasks/UpgradeSiteTreePermissionSchemaTask/run to migrate legacy data to the new schema as outlined above git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65150 467b73ca-7a2a-4603-9d3b-597d59a354a9
60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
Permission:
|
|
cmsmain1:
|
|
Code: CMS_ACCESS_CMSMain
|
|
cmsmain2:
|
|
Code: CMS_ACCESS_CMSMain
|
|
Group:
|
|
subadmingroup:
|
|
Title: Create, edit and delete pages
|
|
Code: subadmingroup
|
|
Permissions: =>Permission.cmsmain1
|
|
editorgroup:
|
|
Title: Edit existing pages
|
|
Code: editorgroup
|
|
Permissions: =>Permission.cmsmain2
|
|
websiteusers:
|
|
Title: View certain restricted pages
|
|
Member:
|
|
subadmin:
|
|
Email: subadmin@test.com
|
|
Password: test
|
|
Groups: =>Group.subadmingroup
|
|
editor:
|
|
Email: editor@test.com
|
|
Password: test
|
|
Groups: =>Group.editorgroup
|
|
websiteuser:
|
|
Email: websiteuser@test.com
|
|
Password: test
|
|
Groups: =>Group.websiteusers
|
|
Page:
|
|
restrictedViewLoggedInUsers:
|
|
CanViewType: LoggedInUsers
|
|
restrictedViewOnlyWebsiteUsers:
|
|
CanViewType: OnlyTheseUsers
|
|
ViewerGroups: =>Group.websiteusers
|
|
restrictedViewOnlySubadminGroup:
|
|
CanViewType: OnlyTheseUsers
|
|
ViewerGroups: =>Group.subadmingroup
|
|
restrictedEditLoggedInUsers:
|
|
CanEditType: LoggedInUsers
|
|
restrictedEditOnlySubadminGroup:
|
|
CanEditType: OnlyTheseUsers
|
|
EditorGroups: =>Group.subadmingroup
|
|
parent_restrictedViewOnlySubadminGroup:
|
|
CanViewType: OnlyTheseUsers
|
|
ViewerGroups: =>Group.subadmingroup
|
|
child_restrictedViewOnlySubadminGroup:
|
|
CanViewType: Inherit
|
|
Parent: =>Page.parent_restrictedViewOnlySubadminGroup
|
|
parent_restrictedEditOnlySubadminGroup:
|
|
CanEditType: OnlyTheseUsers
|
|
EditorGroups: =>Group.subadmingroup
|
|
child_restrictedEditOnlySubadminGroup:
|
|
CanEditType: Inherit
|
|
Parent: =>Page.parent_restrictedEditOnlySubadminGroup
|
|
deleteTestParentPage:
|
|
CanEditType: Inherit
|
|
deleteTestChildPage:
|
|
CanEditType: OnlyTheseUsers
|
|
EditorGroups: =>Group.subadmingroup |