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.

General Questions /

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

[solved] 2.4, Dataobject edit rights


Reply


5 Posts   1027 Views

Avatar
Mo

Community Member, 510 Posts

22 March 2010 at 12:03pm

Edited: 13/07/2010 5:00am

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

Avatar
Mo

Community Member, 510 Posts

25 March 2010 at 6:21am

Anyone have any ideas?

Mo

Avatar
Mo

Community Member, 510 Posts

13 July 2010 at 4:07am

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

Avatar
swaiba

Forum Moderator, 1799 Posts

13 July 2010 at 4:31am

Hi Mo,

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

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

Barry

Avatar
Mo

Community Member, 510 Posts

13 July 2010 at 4:59am

OOOOOOHHHHH...

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

Cheers swaiba!

Mo