Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

[SOLVED] How to set right permission on Staff Page (tutorial 2)


Reply

3 Posts   1177 Views

Avatar
kochab

22 November 2008 at 6:21am (Last edited: 25 November 2008 11:46pm), Community Member, 3 Posts

Hi,
I've implemented a Staff Pages application in Silverstripe following tutorial 2:
http://doc.silverstripe.com/doku.php?id=tutorial:2-extending-a-basic-site#adding_a_staff_section
Administrator of the website can modify staff pages and add new ones correctly.
However, other users which have access to:
CMSMain
LeftAndMain
AssetAdmin
cannot edit staff pages.
If they try to save one of this pages they are logged out from the website,
could someone please help?

thanks,
kochab

Avatar
Liam

22 November 2008 at 7:31am Community Member, 470 Posts

This is probably caused by the bug which happens when you have an image field on your page type for anything but an administrator.

For 2.2.x there is a simple patch for Image.php
http://open.silverstripe.com/ticket/2769

Fixed in 2.3.

Avatar
kochab

25 November 2008 at 11:46pm Community Member, 3 Posts

Thanks, now it works great,
I think this should be written on the tutorial page, it is really a nasty bug.
Moreover the fact that a tutorial fails is quite remarkable.