NASER change delete card conditions
This commit is contained in:
@@ -22,7 +22,7 @@ class BankAccountController extends SuperController
|
|||||||
public function destroy($id)
|
public function destroy($id)
|
||||||
{
|
{
|
||||||
$account = BankAccount::findOrFail($id);
|
$account = BankAccount::findOrFail($id);
|
||||||
if ($account->sts != 3) {
|
if ($account->sts != 3 && $account->sts != 2) {
|
||||||
throw new UnprocessableEntityHttpException('امکان حذف این کارت بانکی وجود ندارد');
|
throw new UnprocessableEntityHttpException('امکان حذف این کارت بانکی وجود ندارد');
|
||||||
}
|
}
|
||||||
return parent::destroy($id);
|
return parent::destroy($id);
|
||||||
|
|||||||
Reference in New Issue
Block a user