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

Assign Permissions on Content Creation?


Reply

2 Posts   693 Views

Avatar
ttyl

21 November 2009 at 8:47am Community Member, 114 Posts

Hi,

If a user is logged in and creates a new page is it possible to automatically set the access permissions for that page to the group(s) they belong to?

Avatar
dalesaurus

26 November 2009 at 5:03am Community Member, 283 Posts

You can access the onAfterWrite() function to run this code, or grab the latestPublished() version and ensure it has the permissions you want.