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

@ -57,7 +57,7 @@ describe FlagQuery do
posts = FlagQuery.flagged_posts_report(admin, topic_id: post.topic_id)
expect(posts).to be_present
posts = FlagQuery.flagged_posts_report(admin, topic_id: -1)
expect(posts).to be_blank
expect(posts[0]).to be_blank
# chuck post in category a mod can not see and make sure its missing
category = Fabricate(:category)