| Total Complexity | 5 | 
| Total Lines | 44 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class CustomerContactPolicy  | 
            ||
| 11 | { | 
            ||
| 12 | use HandlesAuthorization;  | 
            ||
| 13 | use AllowTrait;  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 14 | |||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * Determine if the user can create a contact  | 
            ||
| 18 | */  | 
            ||
| 19 | public function create(User $user)  | 
            ||
| 20 |     { | 
            ||
| 21 | return $this->checkPermission($user, 'Add Customer Contact');  | 
            ||
| 22 | }  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * Determine if the user can update a contact  | 
            ||
| 26 | */  | 
            ||
| 27 | public function update(User $user)  | 
            ||
| 28 |     { | 
            ||
| 29 | return $this->checkPermission($user, 'Edit Customer Contact');  | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Determine if the user can delete a contact  | 
            ||
| 34 | */  | 
            ||
| 35 | public function delete(User $user)  | 
            ||
| 36 |     { | 
            ||
| 37 | return $this->checkPermission($user, 'Delete Customer Contact');  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 | /**  | 
            ||
| 41 | * Determine if the user can restore a deleted contact  | 
            ||
| 42 | */  | 
            ||
| 43 | public function restore(User $user)  | 
            ||
| 44 |     { | 
            ||
| 45 | return $this->checkPermission($user, 'Manage Customers');  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * Determine if the user can permanently delete a contact  | 
            ||
| 50 | */  | 
            ||
| 51 | public function forceDelete(User $user)  | 
            ||
| 54 | }  | 
            ||
| 55 | }  | 
            ||
| 56 |