diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-09-05 17:10:30 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-09-06 12:07:21 -0700 |
commit | a4b564b6200582b6d3700a5e77e0c11fc5cac011 (patch) | |
tree | 0916319c37ebdaaea9b74c95c99b733bfad5336a /app/services/concerns | |
parent | f25b5b7f8db05ec441574429e024c71893fa7c11 (diff) | |
download | gitlab-ce-a4b564b6200582b6d3700a5e77e0c11fc5cac011.tar.gz |
Refactor based on code review
Diffstat (limited to 'app/services/concerns')
-rw-r--r-- | app/services/concerns/update_visibility_level.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/concerns/update_visibility_level.rb b/app/services/concerns/update_visibility_level.rb index f67b5474627..536fcc6acce 100644 --- a/app/services/concerns/update_visibility_level.rb +++ b/app/services/concerns/update_visibility_level.rb @@ -1,5 +1,5 @@ module UpdateVisibilityLevel - def visibility_level_allowed?(target, new_visibility) + def valid_visibility_level_change?(target, new_visibility) # check that user is allowed to set specified visibility_level if new_visibility && new_visibility.to_i != target.visibility_level unless can?(current_user, :change_visibility_level, target) && |