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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Permissions per Subsite DataObject

Go to End

2 Posts   2035 Views


Community Member, 14 Posts

6 July 2009 at 2:05am


thanks to Sam, I'm now able to associate DataObjects to Subsites and share these DataObjects between the various subsites. However, I'm stuck with permissions and would appreciate some help as to what code should go where and how CMS permissions (groups) should be set up:

I have 'newsitems' as subsite-aware dataobjects (with dataobjectdecorator). Newsitems are related to many 'newscollections', with every subsite having it's own newscollection. The idea is that a newscollection can display newsitems belonging to its own subsite as well as selectively pull in newsitems from the global pool of news from all other subsites. However, subsite editors should be allowed to edit and delete only those newsitems that belong to their subsite, so that in a dataobjectmanager instance, they can still see all available newsitems from all subsites, but only get "edit" and "delete" buttons for their own ones. I've tried to implement canDelete() and canEdit, but up to now didn't get this to work and am confused where these should go exactly.... thanks!


Community Member, 15 Posts

20 August 2010 at 12:52am


some problem here.

you found a solution? long time ago? :)