Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
5 | class ForumPolicy extends \TeamTeaTime\Forum\Policies\ForumPolicy |
||
6 | { |
||
7 | /** |
||
8 | * Create a new policy instance. |
||
9 | */ |
||
10 | public function __construct() |
||
11 | { |
||
12 | // |
||
13 | } |
||
14 | |||
15 | public function createCategories($user): bool |
||
16 | { |
||
17 | return $user->hasRole('Admin'); |
||
18 | } |
||
19 | |||
20 | public function manageCategories($user): bool |
||
21 | { |
||
22 | return $user->hasRole('Admin'); |
||
23 | } |
||
24 | |||
25 | public function moveCategories($user): bool |
||
28 | } |
||
29 | |||
30 | public function renameCategories($user): bool |
||
31 | { |
||
32 | return $user->hasRole('Admin'); |
||
33 | } |
||
34 | |||
35 | public function viewTrashedThreads($user): bool |
||
36 | { |
||
37 | return $user->hasRole('Admin'); |
||
38 | } |
||
39 | |||
40 | public function viewTrashedPosts($user): bool |
||
43 | } |
||
44 | } |
||
45 |