diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-19 06:14:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-19 06:14:09 +0300 |
commit | 57007c0e6462c5ad9ac8362ea0f46d46b9d12056 (patch) | |
tree | 5e2ed7135a631811862e03b024af2e4b8eef0de9 /app/models/group.rb | |
parent | 6e70c2b428a91084139a521abb4a3987a5be35ab (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 4e675d3eb8a..9387b581af5 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -725,8 +725,8 @@ class Group < Namespace end end - def default_owner - owners.first || parent&.default_owner || owner + def first_owner + owners.first || parent&.first_owner || owner end def default_branch_name |