From 75f1d9f36bcd586cb38e5538cea263234479479c Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 12 Aug 2026 14:26:15 +0200 Subject: [PATCH] add SofaScoreRosaPolicy --- app/Policies/SofaScoreRosaPolicy.php | 66 ++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 app/Policies/SofaScoreRosaPolicy.php 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'); + } +}