diff --git a/app/Http/Requests/System/CreateUser.php b/app/Http/Requests/System/CreateUser.php index 2dbd27296..87cfd3508 100644 --- a/app/Http/Requests/System/CreateUser.php +++ b/app/Http/Requests/System/CreateUser.php @@ -7,7 +7,7 @@ class CreateUser extends SaveUser public function rules(): array { return array_merge(parent::rules(), [ - 'gid' => 'integer|required_unless:user_group,1', + 'gid' => 'integer|required_unless:user_group,true', 'system' => 'boolean|nullable', 'create_home' => 'boolean', 'user_group' => 'boolean',