Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-09-06 03:10:30 +0300
committerMichael Kozono <mkozono@gmail.com>2017-09-06 22:07:21 +0300
commita4b564b6200582b6d3700a5e77e0c11fc5cac011 (patch)
tree0916319c37ebdaaea9b74c95c99b733bfad5336a /app/services/groups
parentf25b5b7f8db05ec441574429e024c71893fa7c11 (diff)
Refactor based on code review
Diffstat (limited to 'app/services/groups')
-rw-r--r--app/services/groups/update_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/groups/update_service.rb b/app/services/groups/update_service.rb
index 90da1b3d1fe..7955dc32d52 100644
--- a/app/services/groups/update_service.rb
+++ b/app/services/groups/update_service.rb
@@ -5,7 +5,7 @@ module Groups
def execute
reject_parent_id!
- return false unless visibility_level_allowed?(group, params[:visibility_level])
+ return false unless valid_visibility_level_change?(group, params[:visibility_level])
return false unless valid_share_with_group_lock_change?