Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17478 Posts in 4473 Topics by 1972 members

Archive

SilverStripe Forums » Archive » Security on page creation by non admins.

Our old forums are still available as a read-only archive.

Page: 1
Go to End
Author Topic: Security on page creation by non admins. 218 Views
  • micahsheets
    avatar
    Community Member
    130 posts

    Security on page creation by non admins. Link to this post

    I have a site where I want to have the list of available page types to be limited for any CMS users not in the Administrators group. My testing shows that setting:

    static $can_create = false;

    on a page type removes the page from both Administration and other users.

    I found

    static $need_permission

    but cannot find documentation on how it works.

    Also I found:

       // a list of groups that are permitted to create pages of this type.
       /*static $can_create = array(
          'Administrators'
       );*/

    However putting this code, uncommented in my page type declaration doesn't make any difference.

    I would like to limit page creation of all types to only Administrators in the SiteTree class and then allow certain pages to be created by Writers group memebers by setting the $can_create to true in my page types.

    218 Views
Page: 1
Go to Top

Currently Online: Euphemismus, Patrick Arlt, pitsnipe, tbarho

Welcome to our latest member: GreenWork

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

Comments on this website? Please give feedback.