mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:40:00 +08:00
Revert "SECURITY: Don't allow moderators to view the admins inbox"
Superseeded by d9a5280f5665d12bf46efd8cdcc6200da2cdedd8
This reverts commit 18d35bf64a
.
This commit is contained in:
parent
18d35bf64a
commit
0d3239bf21
|
@ -540,8 +540,7 @@ class TopicQuery
|
|||
SELECT group_id
|
||||
FROM group_users
|
||||
WHERE 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 ?)
|
||||
|
|
Loading…
Reference in New Issue
Block a user