diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-02-18 16:39:59 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-18 16:39:59 -0500 |
commit | 924463907db6dcb284b3dc376a66986b4ca369aa (patch) | |
tree | d0ea9c82ef44507715342bca3b054f8d9bf13747 /app/models/project_team.rb | |
parent | c04e22fba8d130a58f498ff48127712d7dae17ee (diff) | |
download | gitlab-ce-924463907db6dcb284b3dc376a66986b4ca369aa.tar.gz |
Allow `ProjectTeam#human_max_access` to return "Owner"rs-show-owner-label
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r-- | app/models/project_team.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb index 9f380a382cb..9629c7e1bb9 100644 --- a/app/models/project_team.rb +++ b/app/models/project_team.rb @@ -136,7 +136,7 @@ class ProjectTeam end def human_max_access(user_id) - Gitlab::Access.options.key max_member_access(user_id) + Gitlab::Access.options_with_owner.key(max_member_access(user_id)) end # This method assumes project and group members are eager loaded for optimal |