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

User Permissions/Ownership


Reply

3 Posts   458 Views

Avatar
solartom

29 May 2012 at 9:01am Community Member, 4 Posts

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

30 May 2012 at 2:37am Forum Moderator, 1796 Posts

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

31 May 2012 at 9:31am Community Member, 4 Posts

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