diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-02-19 00:39:59 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-19 00:39:59 +0300 |
commit | 924463907db6dcb284b3dc376a66986b4ca369aa (patch) | |
tree | d0ea9c82ef44507715342bca3b054f8d9bf13747 /app | |
parent | c04e22fba8d130a58f498ff48127712d7dae17ee (diff) |
Allow `ProjectTeam#human_max_access` to return "Owner"
Diffstat (limited to 'app')
-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 |