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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

[solved] 2.4, Dataobject edit rights


Go to End


5 Posts   1362 Views

Avatar
Mo

Community Member, 541 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, 541 Posts

25 March 2010 at 6:21am

Anyone have any ideas?

Mo

Avatar
Mo

Community Member, 541 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, 1899 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, 541 Posts

13 July 2010 at 4:59am

OOOOOOHHHHH...

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

Cheers swaiba!

Mo