diff options
Diffstat (limited to 'app/models/group_group_link.rb')
-rw-r--r-- | app/models/group_group_link.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/group_group_link.rb b/app/models/group_group_link.rb index 58c188369da..c233f59b1a6 100644 --- a/app/models/group_group_link.rb +++ b/app/models/group_group_link.rb @@ -13,6 +13,8 @@ class GroupGroupLink < ApplicationRecord validates :group_access, inclusion: { in: Gitlab::Access.all_values }, presence: true + scope :non_guests, -> { where('group_access > ?', Gitlab::Access::GUEST) } + def self.access_options Gitlab::Access.options_with_owner end |