Add front end service for staff controls

This commit is contained in:
Robin Ward
2017-09-12 13:04:53 -04:00
parent 5cf50f0034
commit d7c37d9369
31 changed files with 294 additions and 186 deletions

View File

@@ -272,7 +272,7 @@ class Topic < ActiveRecord::Base
end
def has_flags?
FlagQuery.flagged_post_actions("active")
FlagQuery.flagged_post_actions(filter: "active")
.where("topics.id" => id)
.exists?
end