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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2435 Views

Avatar
Hubertus

Community Member, 14 Posts

6 July 2009 at 2:05am

Hello,

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!

Avatar
nafetsch

Community Member, 15 Posts

20 August 2010 at 12:52am

hey.

some problem here.

you found a solution? long time ago? :)