This commit is contained in:
2023-12-14 19:03:25 +05:00
parent a3771218f0
commit 445884782a
12 changed files with 404 additions and 30 deletions

View File

@@ -99,7 +99,7 @@ class LoanOrderPolicy
*/
public function restore(User $user, LoanOrder $loanOrder): bool
{
if ($user->isAdmin()) {
if ($user->isMe()) {
return true;
}
@@ -111,7 +111,7 @@ class LoanOrderPolicy
*/
public function forceDelete(User $user, LoanOrder $loanOrder): bool
{
if ($user->isAdmin()) {
if ($user->isMe()) {
return true;
}