diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-09-06 16:52:54 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-09-06 16:52:54 +0000 |
commit | 34410251263a456728ccf672e8c4b75a5a13ca04 (patch) | |
tree | 6cc198901a124d449b09b75e6fecb0383d00fdd8 /lib | |
parent | 10fd3542225e161de0c82442304a0881ccecc774 (diff) | |
parent | 7d2302605c8f40ebbfe72ad7efa5a32aa4c806fe (diff) | |
download | gitlab-ce-34410251263a456728ccf672e8c4b75a5a13ca04.tar.gz |
Merge branch '35161_first_time_contributor_badge' into 'master'
First time contributor badge
Closes #35161
See merge request !13902
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/access.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/access.rb b/lib/gitlab/access.rb index 4714ab18cc1..b4012ebbb99 100644 --- a/lib/gitlab/access.rb +++ b/lib/gitlab/access.rb @@ -67,10 +67,14 @@ module Gitlab def protection_values protection_options.values end + + def human_access(access) + options_with_owner.key(access) + end end def human_access - Gitlab::Access.options_with_owner.key(access_field) + Gitlab::Access.human_access(access_field) end def owner? |