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