Jump to:

23478 Posts in 18941 Topics by 2878 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: 685 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.

    685 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.