Story: look through self.taggings since it's eager loaded in list views
This commit is contained in:
parent
ab76ee76c4
commit
cabe52b31d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue