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
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-02-19 00:39:59 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-02-19 00:39:59 +0300
commit924463907db6dcb284b3dc376a66986b4ca369aa (patch)
treed0ea9c82ef44507715342bca3b054f8d9bf13747 /app/models/project_team.rb
parentc04e22fba8d130a58f498ff48127712d7dae17ee (diff)
Allow `ProjectTeam#human_max_access` to return "Owner"
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r--app/models/project_team.rb2
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