diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-13 06:10:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-13 06:10:09 +0300 |
commit | ed01bf9b255ebcaafdf07e0d9a54ce6886d9fdc7 (patch) | |
tree | ff197d19fc9f99effbdd837f7a911fa8f322c557 /lib/gitlab/visibility_level.rb | |
parent | 2023b1313d8f42bff1d6563330c0a7eed9d4dd85 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/visibility_level.rb')
-rw-r--r-- | lib/gitlab/visibility_level.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/visibility_level.rb b/lib/gitlab/visibility_level.rb index abfb7e2310e..64029d4d3fe 100644 --- a/lib/gitlab/visibility_level.rb +++ b/lib/gitlab/visibility_level.rb @@ -12,6 +12,7 @@ module Gitlab included do scope :public_only, -> { where(visibility_level: PUBLIC) } scope :public_and_internal_only, -> { where(visibility_level: [PUBLIC, INTERNAL] ) } + scope :private_only, -> { where(visibility_level: PRIVATE) } scope :non_public_only, -> { where.not(visibility_level: PUBLIC) } scope :public_to_user, -> (user = nil) do |