Jump to:

11003 Posts in 2735 Topics by 1824 members

All other Modules

SilverStripe Forums » All other Modules » Permissions to add/edit modeladmin components

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1096 Views
  • Laurie
    Community Member
    21 Posts

    Permissions to add/edit modeladmin components Link to this post

    I'm running 2.4.0 + cmsworkflow + dataobject_manager.

    I've added several classes that extend ModelAdmin...so far, so good.

    However, I'd like to allow roles other than admin (like publisher and author) to add and edit items defined by the ModelAdmin classes I've created.

    I've ticked the "Access to 'xxx' section" on the roles tab of the security section...and this allows other user to search and view items, but not add or edit. What other item(s) need to be ticked to enable other users to add and edit items? Or is there some other way that this needs to be done?

    Many thanks.


  • swaiba
    Forum Moderator
    1796 Posts

    Re: Permissions to add/edit modeladmin components Link to this post


    overriding the folwoing functions to true works...

       function canCreate() {return true;}
       function canEdit() {return true;}
       function canDelete() {return true;}


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.