diff options
author | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2021-10-28 15:06:54 +0300 |
---|---|---|
committer | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2021-10-28 15:06:54 +0300 |
commit | 305ea394efd2d5afe16234406dede486d9ca37af (patch) | |
tree | 92b38d477de28ee6ee1e4319d1e8e0f04365b749 /app/services/projects/update_service.rb | |
parent | 51b27ab58055b65e14e68b19604e4823389adb73 (diff) | |
parent | 1a23d731c9f1149b8be1f16a1d781490df288f18 (diff) |
Merge remote-tracking branch 'dev/14-4-stable' into 14-4-stable
Diffstat (limited to 'app/services/projects/update_service.rb')
-rw-r--r-- | app/services/projects/update_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/update_service.rb b/app/services/projects/update_service.rb index a32e80af4b1..b34ecf06e52 100644 --- a/app/services/projects/update_service.rb +++ b/app/services/projects/update_service.rb @@ -49,7 +49,7 @@ module Projects private def validate! - unless valid_visibility_level_change?(project, params[:visibility_level]) + unless valid_visibility_level_change?(project, project.visibility_attribute_value(params)) raise ValidationError, s_('UpdateProject|New visibility level not allowed!') end |