| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class EquipmentCategoryPolicy |
||
| 10 | { |
||
| 11 | use AllowTrait; |
||
| 12 | use HandlesAuthorization; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Determine whether the user can create models |
||
| 16 | */ |
||
| 17 | public function create(User $user) |
||
| 18 | { |
||
| 19 | return $this->checkPermission($user, 'Manage Equipment'); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Determine whether the user can update the model |
||
| 24 | */ |
||
| 25 | public function update(User $user) |
||
| 26 | { |
||
| 27 | return $this->checkPermission($user, 'Manage Equipment'); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Determine whether the user can delete the model |
||
| 32 | */ |
||
| 33 | public function delete(User $user) |
||
| 36 | } |
||
| 37 | } |
||
| 38 |