Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Where is the security section be called

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: 758 Views
  • zcm211
    Avatar
    Community Member
    18 Posts

    Where is the security section be called Link to this post

    Where is the security section be called?

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Where is the security section be called Link to this post

    Hi,

    Not quite sure what you're looking for. Are you wanting to know how to password-protect pages?

    Ben

  • zcm211
    Avatar
    Community Member
    18 Posts

    Re: Where is the security section be called Link to this post

    Sorry, my English is poor. I mean the security module in sapphire. I checked the security.php file, I just want to know where the core use security class, do you understand what I say?
    see the pic attahced.

    Attached Files
  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Where is the security section be called Link to this post

    Are you looking for where the core classes use class Security? If so, searching those files for "Security" should help you out.

    Ben

  • zcm211
    Avatar
    Community Member
    18 Posts

    Re: Where is the security section be called Link to this post

    Yes,I want to know that. And I found that the security class is used at:
    if (Director::isLive()) {
        error_reporting(E_ALL ^ E_NOTICE);
    }

    but I' m not sure if I understand the exact meaning of the security purpose, because that the annotation of the security.php file tells that this class is used to "Implements a basic security model". What is a security model? Where dose it begin? Does it begin at if(Director::isLive) since this class has used some method of class security?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Where is the security section be called Link to this post

    Director has nothing to do with the security model. That deals with another part of silverstripe - the ability to have sites in development mode (show full error messages) and sites in live mode. Sites in live mode may implement parts of the security model - eg to run dev/build on the live mode you will need to login to the site as an administrator first.

    Most of the class's and code relating to the Security model is in /sapphire/security/*.

    For more information on the security model see http://doc.silverstripe.com/doku.php?id=security

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