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
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-09-06 19:52:54 +0300
committerSean McGivern <sean@mcgivern.me.uk>2017-09-06 19:52:54 +0300
commit34410251263a456728ccf672e8c4b75a5a13ca04 (patch)
tree6cc198901a124d449b09b75e6fecb0383d00fdd8 /lib
parent10fd3542225e161de0c82442304a0881ccecc774 (diff)
parent7d2302605c8f40ebbfe72ad7efa5a32aa4c806fe (diff)
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.rb6
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?