boolean check(
[string
$access = 'r'])
|
|
Check if the requested access is granted.
If $this->uid is an IsterACLIdentity this method will first check if this identity has an attribute "role". Then it will check if the ACL has an entry for "role.<name-of-role>" and the requested access method. Next it will check for an entry "user.<name-of-identity>" and then for an entry of the UID of the identity. If $this->uid is a string or number, only this check will be performed.
If no UID has been set or found, false will be returned.
Parameters: