Where is the security section be called?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi,
Not quite sure what you're looking for. Are you wanting to know how to password-protect pages?
Ben
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.
Are you looking for where the core classes use class Security? If so, searching those files for "Security" should help you out.
Ben
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?
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