Merge branch 'feature/tagCustomer' into develop
This commit is contained in:
@@ -334,9 +334,9 @@ class CustomerController
|
||||
$data = [
|
||||
'user_id' => $request->user['id']
|
||||
];
|
||||
$customer= Customer::find($customerId);
|
||||
$customer= Customer::withTrashed()->find($customerId);
|
||||
|
||||
if($customer->user_id != 0){
|
||||
if(empty($customer) || $customer->user_id != 0){
|
||||
return Util::fail('', trans('claim_fail'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user