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:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-03-07 20:01:32 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-03-07 20:01:32 +0300
commitdeb4bfa4681f2bcec32ddf89cdd78ca0d14cfdda (patch)
treec342edb6ddef017d4ab6e8d213c2f7d9cc2d65ed /app/models/project_team.rb
parentce819eceea58f1452f59ffc275a4c8cb6c5da0d8 (diff)
Backport relevant changes from EE https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4827 to CE
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r--app/models/project_team.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb
index a9e5cfb8240..33280eda0b9 100644
--- a/app/models/project_team.rb
+++ b/app/models/project_team.rb
@@ -85,6 +85,15 @@ class ProjectTeam
@masters ||= fetch_members(Gitlab::Access::MASTER)
end
+ def owners
+ @owners ||=
+ if group
+ group.owners
+ else
+ [project.owner]
+ end
+ end
+
def import(source_project, current_user = nil)
target_project = project