/home/techb158/ileadtechnology.com/SSM/app/Policies/reception
Edit: /home/techb158/ileadtechnology.com/SSM/app/Policies/reception/ComplaintPolicy.php (2030B)
can('create-complaint') || $user->can('edit-complaint');
}
/**
* Determine whether the user can list all the call log.
*
* @param \App\User $user
* @param \App\Models\Reception\Complaint $complaint
* @return mixed
*/
public function list(User $user)
{
return $user->can('list-complaint');
}
/**
* Determine whether the user can create call log.
*
* @param \App\User $user
* @return mixed
*/
public function create(User $user)
{
return $user->can('create-complaint');
}
/**
* Determine whether the user can view the call log.
*
* @param \App\User $user
* @param \App\Models\Reception\Complaint $complaint
* @return mixed
*/
public function show(User $user)
{
return $user->can('list-complaint');
}
/**
* Determine whether the user can update the call log.
*
* @param \App\User $user
* @param \App\Models\Reception\Complaint $complaint
* @return mixed
*/
public function update(User $user)
{
return $user->can('edit-complaint');
}
/**
* Determine whether the user can delete the call log.
*
* @param \App\User $user
* @param \App\Models\Reception\Complaint $complaint
* @return mixed
*/
public function delete(User $user)
{
return $user->can('delete-complaint');
}
}