| Total Complexity | 6 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class RecruitmentUserPolicy |
||
| 9 | { |
||
| 10 | use HandlesAuthorization; |
||
| 11 | |||
| 12 | public function list(User $user) |
||
| 13 | { |
||
| 14 | if ($user->can('update any recruitment')) { |
||
| 15 | return true; |
||
| 16 | } |
||
| 17 | |||
| 18 | return false; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function create(User $user) |
||
| 28 | } |
||
| 29 | |||
| 30 | public function delete(User $user) |
||
| 37 | } |
||
| 38 | } |
||
| 39 |