When we want to force a user to have all rights, we use an instance of this "super user" model. More...
Public Member Functions | |
__construct () | |
Constructs a new AlwaysAuth user. | |
set_authorized_for ($type, $value) | |
If you want to start out with an "auth me for everything" but gradually deny some rights, this is the method you are looking for. | |
get_permission_regexp () | |
Overwrite permission quarks for User_AlwaysAuth to get an always matching regexp. | |
logged_in () | |
Returns true if logged in. |
When we want to force a user to have all rights, we use an instance of this "super user" model.
It is practical for tests, but also CLI scripts which usually have no concept of a user executing it.
User_AlwaysAuth_Model::get_permission_regexp | ( | ) |
Overwrite permission quarks for User_AlwaysAuth to get an always matching regexp.
Reimplemented from User_Model.
User_AlwaysAuth_Model::logged_in | ( | ) |
Returns true if logged in.
Reimplemented from User_Model.
User_AlwaysAuth_Model::set_authorized_for | ( | $ | type, | |
$ | value | |||
) |
If you want to start out with an "auth me for everything" but gradually deny some rights, this is the method you are looking for.
Exception |
$type | string | |
$value | bool |