Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class UserPolicy |
||
12 | { |
||
13 | use AllowTrait; |
||
1 ignored issue
–
show
|
|||
14 | use HandlesAuthorization; |
||
15 | |||
16 | public function manage(User $user) |
||
19 | 22 | } |
|
20 | |||
21 | 22 | /** |
|
22 | 22 | * Determine whether the user can create models |
|
23 | */ |
||
24 | 22 | public function create(User $user) |
|
25 | { |
||
26 | 22 | return $this->checkPermission($user, 'Manage Users'); |
|
27 | } |
||
28 | 11 | ||
29 | /** |
||
30 | 11 | * Determine whether the user can update the user profile |
|
31 | */ |
||
32 | public function update(User $user, User $model) |
||
46 | } |
||
47 | } |
||
48 |