Jump to:

23481 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » [solved] 2.4, Dataobject edit rights

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1008 Views
  • Mo
    Avatar
    Community Member
    508 Posts

    [solved] 2.4, Dataobject edit rights Link to this post

    Hi All,

    I have noticed a new feature that exists when editing dataobjects in a form of TableField. It now seems that creation and editing of dataobjects are two different security rights. I cannot however see how to set these writes in the Security section.

    Do I need to setup a role to allow non admins to manage these? Or do I have to add something to may TableField's code?

    Cheers,

    Mo

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: [solved] 2.4, Dataobject edit rights Link to this post

    Anyone have any ideas?

    Mo

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: [solved] 2.4, Dataobject edit rights Link to this post

    Hey all,

    Can someone point me to some documentation on this?

    I have tried out the code here:

    http://open.silverstripe.org/wiki/development/permissions

    But non admin users still can't edit dataobjects.

    Any thoughts?

    Mo

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: [solved] 2.4, Dataobject edit rights Link to this post

    Hi Mo,

    in each dataobject you want edited place the following...

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

    Barry

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: [solved] 2.4, Dataobject edit rights Link to this post

    OOOOOOHHHHH...

    I was putting in the methods, but returning the wrong values... DOH!

    Cheers swaiba!

    Mo

    1008 Views
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.