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