diff --git a/app/Policies/SofaScoreRosaPolicy.php b/app/Policies/SofaScoreRosaPolicy.php new file mode 100644 index 00000000..3e9b17db --- /dev/null +++ b/app/Policies/SofaScoreRosaPolicy.php @@ -0,0 +1,66 @@ +can('ViewAny:SofaScoreRosa'); + } + + public function view(AuthUser $authUser): bool + { + return $authUser->can('View:SofaScoreRosa'); + } + + public function create(AuthUser $authUser): bool + { + return $authUser->can('Create:SofaScoreRosa'); + } + + public function update(AuthUser $authUser): bool + { + return $authUser->can('Update:SofaScoreRosa'); + } + + public function delete(AuthUser $authUser): bool + { + return $authUser->can('Delete:SofaScoreRosa'); + } + + public function restore(AuthUser $authUser): bool + { + return $authUser->can('Restore:SofaScoreRosa'); + } + + public function forceDelete(AuthUser $authUser): bool + { + return $authUser->can('ForceDelete:SofaScoreRosa'); + } + + public function forceDeleteAny(AuthUser $authUser): bool + { + return $authUser->can('ForceDeleteAny:SofaScoreRosa'); + } + + public function restoreAny(AuthUser $authUser): bool + { + return $authUser->can('RestoreAny:SofaScoreRosa'); + } + + public function replicate(AuthUser $authUser): bool + { + return $authUser->can('Replicate:SofaScoreRosa'); + } + + public function reorder(AuthUser $authUser): bool + { + return $authUser->can('Reorder:SofaScoreRosa'); + } +}