diff options
author | Sara Ahbabou <sahbabou@gitlab.com> | 2019-04-12 08:00:50 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2019-04-12 08:00:50 +0300 |
commit | dc00fa90e95916719bfcfeb5bdca9f0b590ca467 (patch) | |
tree | c8d1debe9c9579ee3e3095361ab250635bcd87f5 /lib/gitlab/visibility_level.rb | |
parent | d25cdca68fb945db6b60cf4da60bc6ed503bea49 (diff) |
Squashed commits and modified visibility level output
Added changelog and rebased
Diffstat (limited to 'lib/gitlab/visibility_level.rb')
-rw-r--r-- | lib/gitlab/visibility_level.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/visibility_level.rb b/lib/gitlab/visibility_level.rb index a3c7de87765..8f9d5cf1e63 100644 --- a/lib/gitlab/visibility_level.rb +++ b/lib/gitlab/visibility_level.rb @@ -75,8 +75,8 @@ module Gitlab user.admin? || allowed_level?(level.to_i) end + # Level should be a numeric value, e.g. `20` # Return true if the specified level is allowed for the current user. - # Level should be a numeric value, e.g. `20`. def allowed_level?(level) valid_level?(level) && non_restricted_level?(level) end |