add manager aprove
This commit is contained in:
8 files changed
+209
No files matched your search
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user