add manager aprove

This commit is contained in:
Meghdad committed 2026-07-22 17:28:42 +03:30
1 parent e8223fbc3e
commit 728d5d5807
8 files changed
+209

No files matched your search

+6
View File
@@ -2,6 +2,7 @@
namespace App\Policies;
use App\Domain\Loan\Enums\LoanStatus;
use App\Models\Loan;
use App\Models\User;
@@ -39,6 +40,11 @@ class LoanPolicy
return false;
}
public function approve(User $user, Loan $loan): bool
{
return $loan->status === LoanStatus::ManualReview;
}
/**
* Determine whether the user can delete the model.
*/