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

User Permissions/Ownership


Go to End


3 Posts   1067 Views

Avatar
solartom

Community Member, 4 Posts

29 May 2012 at 9:01am

I'm new to Silverstripe and am wondering if content has an owner. I would like to set up permissions similar to Drupal where a user can only edit the content they created. I only see group permissions. Is this something you can do in Silverstripe?

Avatar
swaiba

Forum Moderator, 1899 Posts

30 May 2012 at 2:37am

Hi,

Welcome to the forums!

Absolutely, within the code for the relevant page (or all pages) add fucntions returning true/false for canView/canEdit/canCreate based on the user. Somethign like this (including Willr comments) http://www.silverstripe.org/general-questions/show/16894

I haven't used this myself but I do believe it is might be worth checking out the advanced workflow module https://github.com/silverstripe-australia/advancedworkflow becasue this adds more to the control of editting sitetree content

Avatar
solartom

Community Member, 4 Posts

31 May 2012 at 9:31am

Thank you for your kind welcome and for your quick response. I will have to check out the advancedworkflow module

I found this module https://github.com/silverstripe-labs/silverstripe-peruseraccess but so far I haven't had any success in installing it.

I am initially trying to create a community event calendar where users can add events but should only be allowed to edit/delete their own events.

Thanks,
Tom