/home/techb158/ileadtechnology.com/SSM/app/Policies/exam
Edit: /home/techb158/ileadtechnology.com/SSM/app/Policies/exam/ExamPolicy.php (1908B)
can('create-exam') || $user->can('edit-exam');
}
/**
* Determine whether the user can list all the exam.
*
* @param \App\User $user
* @param \App\Models\Exam\Exam $exam
* @return mixed
*/
public function list(User $user)
{
return $user->can('list-exam');
}
/**
* Determine whether the user can create exam.
*
* @param \App\User $user
* @return mixed
*/
public function create(User $user)
{
return $user->can('create-exam');
}
/**
* Determine whether the user can view the exam.
*
* @param \App\User $user
* @param \App\Models\Exam\Exam $exam
* @return mixed
*/
public function show(User $user)
{
return $user->can('list-exam');
}
/**
* Determine whether the user can update the exam.
*
* @param \App\User $user
* @param \App\Models\Exam\Exam $exam
* @return mixed
*/
public function update(User $user)
{
return $user->can('edit-exam');
}
/**
* Determine whether the user can delete the exam.
*
* @param \App\User $user
* @param \App\Models\Exam\Exam $exam
* @return mixed
*/
public function delete(User $user)
{
return $user->can('delete-exam');
}
}