File src/Integration/TlfUserAccess.php
class Phad\Integration\TlfUserAccess
Access methods are inherited from \Phad\Integration\DynamicAccess, except for user_has_role() and the constructor. Access methods can be modified dynamically in the same way as DynamicAccess, except for user_has_role.
See source code at /src/Integration/TlfUserAccess.php
Constants
Properties
-
protected \Tlf\User\Package $user_package; -
public $user_has_role;user_has_rolecallable is NOT used on TlfUserAccess. You may modify the other callables, but this one will have noe effect.
Methods
-
public function __construct(\Tlf\User\Package $user_package) -
public function user_has_role(string $role): boolCheck if the currently logged-in user has the given role. Only handles one role check. Userole:some_rolein your access rules.