Story: look through self.taggings since it's eager loaded in list views

This commit is contained in:
Carl Chenet 2017-05-08 19:18:37 +02:00
parent ab76ee76c4
commit cabe52b31d

View file

@ -227,7 +227,7 @@ class Story < ActiveRecord::Base
return false
end
if self.tags.select{|t| t.privileged? }.any?
if self.taggings.select{|t| t.tag && t.tag.privileged? }.any?
return false
end