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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-20 12:11:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-20 12:11:11 +0300
commit6b5937e93e758a429a02eb0644fd23ad164a4ad9 (patch)
tree7c4f2cb996078b7a9f5a5dfe3891c4a927a3a835 /app/models/project_team.rb
parent52d6a520b1dde5b050be56f1bc67110b8f43e6e6 (diff)
Add latest changes from gitlab-org/gitlab@master
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 8061554006d..c3c7508df9f 100644
--- a/app/models/project_team.rb
+++ b/app/models/project_team.rb
@@ -107,6 +107,10 @@ class ProjectTeam
end
end
+ def owner?(user)
+ owners.include?(user)
+ end
+
def import(source_project, current_user = nil)
target_project = project