summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/query.rb')
-rw-r--r--app/models/query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index aaaa1ae73..11460c1cb 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -82,7 +82,7 @@ class Query < ActiveRecord::Base
def editable_by?(user)
return false unless user
return true if !is_public && self.user_id == user.id
- is_public && user.allowed_to?(:manage_pulic_queries, project)
+ is_public && user.allowed_to?(:manage_public_queries, project)
end
def available_filters