Total Complexity | 6 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class TechTipCommentPolicy |
||
12 | { |
||
13 | use AllowTrait; |
||
14 | use HandlesAuthorization; |
||
15 | |||
16 | public function manage(User $user) |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Determine whether the user can create models |
||
23 | */ |
||
24 | public function create(User $user) |
||
25 | { |
||
26 | return $this->checkPermission($user, 'Comment on Tech Tip'); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Determine whether the user can update the model |
||
31 | */ |
||
32 | public function update(User $user, TechTipComment $techTipComment) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Determine whether the user can delete the model |
||
39 | */ |
||
40 | public function delete(User $user, TechTipComment $techTipComment) |
||
45 |