A platform for community discussion. Free, open, simple.
Revert "SECURITY: Don't allow moderators to view the admins inbox"
Guo Xiang Tan0d3239bf212d
diff --git a/lib/topic_query.rb b/lib/topic_query.rbindex fcffb422bef..ec6133ca747 100644--- a/lib/topic_query.rb+++ b/lib/topic_query.rb@@ -540,8 +540,7 @@ class TopicQuerySELECT group_idFROM group_usersWHERE user_id = #{user.id.to_i}- OR #{user.admin?}- OR (#{user.staff?} AND group_id <> #{Group::AUTO_GROUPS[:admins]})+ OR #{user.staff?}))AND group_id IN (SELECT id FROM groups WHERE name ilike ?)