diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-10 21:12:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-10 21:12:41 +0300 |
commit | 73fe31a692af05918e234b1acc915e487f194d23 (patch) | |
tree | 9f011371fb4667d5027a571969345b9588b3901d /app/services/users | |
parent | ad2d90fb2475c9660b04951cd93ee969cf78c09b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/users')
-rw-r--r-- | app/services/users/build_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/users/build_service.rb b/app/services/users/build_service.rb index 934dccf2f76..9d221119985 100644 --- a/app/services/users/build_service.rb +++ b/app/services/users/build_service.rb @@ -70,7 +70,7 @@ module Users @user_params[:created_by_id] = current_user&.id @user_params[:external] = user_external? if set_external_param? - @user_params.delete(:user_type) unless project_bot? + @user_params.delete(:user_type) unless allowed_user_type? end def set_external_param? @@ -81,7 +81,7 @@ module Users user_default_internal_regex_instance.match(params[:email]).nil? end - def project_bot? + def allowed_user_type? user_params[:user_type]&.to_sym == :project_bot end |