|
@@ -77,7 +77,7 @@ class CustomFieldController extends Controller
|
|
|
$nameRuleGroup = NamingRule::query()->where('id',$nameGroupId)->get();
|
|
|
$allGroups=config("custom-field.groups");
|
|
|
if(!empty($nameRuleGroup)){
|
|
|
- if(in_array($allGroups,$nameRuleGroup->pluck('id')->toArray())){
|
|
|
+ if(!in_array($allGroups,$nameRuleGroup->pluck('id')->toArray())){
|
|
|
throw new \Exception("Please contact the administrator to add the namerule configuration.");
|
|
|
}
|
|
|
}
|