1 | <?php |
||
18 | |||
19 | class UserRule extends Rule |
||
20 | { |
||
21 | /** |
||
22 | * Executes the rule. |
||
23 | * |
||
24 | * @param string|User $user the user GUID. This should be either a GUID string representing |
||
25 | * the unique identifier of a user or a User instance. See [[\rhosocial\user\User::guid]]. |
||
26 | * @param User $item the role or permission that this rule is associated with |
||
27 | * @param array $params parameters passed to [[CheckAccessInterface::checkAccess()]]. |
||
28 | * @return bool a value indicating whether the rule permits the auth item it is associated with. |
||
29 | */ |
||
30 | public function execute($user, $item, $params) { |
||
31 | return true; |
||
32 | } |
||
33 | } |
||
34 |