| 1 | <?php |
||
| 14 | class UserPolicy extends Policy |
||
| 15 | { |
||
| 16 | use HandlesAuthorization; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * EXAMPLE CODE, NEVER USED |
||
| 20 | * Determine if the user is updating himself and not another user. |
||
| 21 | * |
||
| 22 | * @param \App\Containers\User\Models\User $user |
||
| 23 | * @param $inputUserId |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | public function update(User $user, $inputUserId) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * EXAMPLE CODE, NEVER USED |
||
| 35 | * Determine if the user is deleting himself and not another user. |
||
| 36 | * |
||
| 37 | * @param \App\Containers\User\Models\User $user |
||
| 38 | * @param $inputUserId |
||
| 39 | * |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public function delete(User $user, $inputUserId) |
||
| 47 | } |
||
| 48 |