NASER change delete card conditions

This commit is contained in:
2026-02-19 13:15:59 +03:30
parent d520750d63
commit d7778bac8b
@@ -22,7 +22,7 @@ class BankAccountController extends SuperController
public function destroy($id)
{
$account = BankAccount::findOrFail($id);
if ($account->sts != 3) {
if ($account->sts != 3 && $account->sts != 2) {
throw new UnprocessableEntityHttpException('امکان حذف این کارت بانکی وجود ندارد');
}
return parent::destroy($id);