Jump to:

22995 Posts in 11844 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Assign Permissions on Content Creation?

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

Page: 1
Go to End
Author Topic: 650 Views
  • ttyl
    Avatar
    Community Member
    114 Posts

    Assign Permissions on Content Creation? Link to this post

    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?

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Assign Permissions on Content Creation? Link to this post

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

    650 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.