mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
fe543edcd6
added a canCreateTopLevel() if there is no parent object in CMSMain.php added testCreationOfTopLevelPage toCMSMainTest.php added the nessessary 'database entries' in the CMSMainTest.yml (from r98001) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102749 467b73ca-7a2a-4603-9d3b-597d59a354a9
65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
Page:
|
|
page1:
|
|
Title: Page 1
|
|
page2:
|
|
Title: Page 2
|
|
page3:
|
|
Title: Page 3
|
|
page31:
|
|
Title: Page 3.1
|
|
Parent: =>Page.page3
|
|
page32:
|
|
Title: Page 3.2
|
|
Parent: =>Page.page3
|
|
page4:
|
|
Title: Page 4
|
|
home:
|
|
Title: Home
|
|
URLSegment: home
|
|
Group:
|
|
admin:
|
|
Title: Administrators
|
|
empty:
|
|
Title: Empty Group
|
|
assetsonly:
|
|
Title: assetsonly
|
|
allcmssections:
|
|
Title: allcmssections
|
|
rooteditusers:
|
|
Title: rooteditusers
|
|
Member:
|
|
admin:
|
|
Email: admin@example.com
|
|
Password: ZXXlkwecxz2390232233
|
|
Groups: =>Group.admin
|
|
assetsonlyuser:
|
|
Email: assetsonlyuser@test.com
|
|
Groups: =>Group.assetsonly
|
|
allcmssectionsuser:
|
|
Email: allcmssectionsuser@test.com
|
|
Groups: =>Group.allcmssections
|
|
rootedituser:
|
|
Email: rootedituser@test.com
|
|
Groups: =>Group.rooteditusers
|
|
Permission:
|
|
admin:
|
|
Code: ADMIN
|
|
GroupID: =>Group.admin
|
|
assetsonly:
|
|
Code: CMS_ACCESS_AssetAdmin
|
|
GroupID: =>Group.assetsonly
|
|
allcmssections:
|
|
Code: CMS_ACCESS_LeftAndMain
|
|
GroupID: =>Group.allcmssections
|
|
allcmssections2:
|
|
Code: CMS_ACCESS_LeftAndMain
|
|
GroupID: =>Group.rooteditusers
|
|
SiteConfig:
|
|
siteconfig1:
|
|
EditorGroups: =>Group.rooteditusers
|
|
CanCreateTopLevelType: 'OnlyTheseUsers'
|
|
SiteConfig_CreateTopLevelGroups:
|
|
createtoplevelgroups1:
|
|
siteconfigid: 1
|
|
GroupID: =>Group.rooteditusers
|