summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 56db0ce6cf6..60729d93187 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -273,7 +273,7 @@ class Project < ActiveRecord::Base
end
def search_by_visibility(level)
- where(visibility_level: visibility_levels[level.capitalize])
+ where(visibility_level: Gitlab::VisibilityLevel.const_get(level.upcase))
end
def search_by_title(query)