21308 Posts in 5737 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 647 Views |
-
Where is the security section be called

16 April 2009 at 9:30pm
Where is the security section be called?
-
Re: Where is the security section be called

17 April 2009 at 3:04am
Hi,
Not quite sure what you're looking for. Are you wanting to know how to password-protect pages?
Ben
-
Re: Where is the security section be called

17 April 2009 at 3:34am
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. -
Re: Where is the security section be called

17 April 2009 at 11:29pm
Are you looking for where the core classes use class Security? If so, searching those files for "Security" should help you out.
Ben
-
Re: Where is the security section be called

19 April 2009 at 3:50am
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?
-
Re: Where is the security section be called

19 April 2009 at 5:32pm
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
| 647 Views | ||
|
Page:
1
|
Go to Top |


