diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-03 21:10:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-03 21:10:03 +0300 |
commit | b6847c621ff246e6abceb90545d5a608318762d6 (patch) | |
tree | 460da2a6c2be2e4f5164c2bba1851b66260f850d /app/models/snippet.rb | |
parent | c08d9c22569d1c9e7c7737e183969593394133d9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index edf524190e4..973bdc54111 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -310,7 +310,7 @@ class Snippet < ApplicationRecord end def versioned_enabled_for?(user) - repository_exists? && ::Feature.enabled?(:version_snippets, user) + ::Feature.enabled?(:version_snippets, user) && repository_exists? end class << self |