21492 Posts in 5783 Topics by 2621 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 853 Views |
-
[solved] 2.4, Dataobject edit rights

22 March 2010 at 12:03pm Last edited: 13 July 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
-
Re: [solved] 2.4, Dataobject edit rights

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
-
Re: [solved] 2.4, Dataobject edit rights

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
-
Re: [solved] 2.4, Dataobject edit rights

13 July 2010 at 4:59am
OOOOOOHHHHH...
I was putting in the methods, but returning the wrong values... DOH!
Cheers swaiba!
Mo
| 853 Views | ||
|
Page:
1
|
Go to Top |


