summaryrefslogtreecommitdiff
path: root/app/models/project_team.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-10-02 15:10:33 +0300
committerValery Sizov <vsv2711@gmail.com>2015-10-02 15:11:17 +0300
commit97e6c9b42ca65be14f64f1528821922b2b0bd04a (patch)
tree2b48a6c6f58cc3cb91258f194ad2d5758c5d4477 /app/models/project_team.rb
parentc867c225095319684ad6ff396e4194bb1b5920d5 (diff)
downloadgitlab-ce-97e6c9b42ca65be14f64f1528821922b2b0bd04a.tar.gz
Wrong access level badge on MR commentsaccess_level_badge_bug
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r--app/models/project_team.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb
index 56e49af2324..f602a965364 100644
--- a/app/models/project_team.rb
+++ b/app/models/project_team.rb
@@ -135,6 +135,10 @@ class ProjectTeam
!!find_member(user_id)
end
+ def human_max_access(user_id)
+ Gitlab::Access.options.key max_member_access(user_id)
+ end
+
def max_member_access(user_id)
access = []
access << project.project_members.find_by(user_id: user_id).try(:access_field)