Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Permissions per Subsite DataObject

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1514 Views
  • Hubertus
    Community Member
    14 Posts

    Permissions per Subsite DataObject Link to this post


    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!

  • nafetsch
    Community Member
    15 Posts

    Re: Permissions per Subsite DataObject Link to this post


    some problem here.

    you found a solution? long time ago?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.