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