mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
PERF: fix performance issue when displaying the user card for admins
This commit is contained in:
parent
47c4179e29
commit
e20078a9dc
7 changed files with 62 additions and 38 deletions
|
@ -55,4 +55,8 @@ module UserGuardian
|
|||
user.trust_level == TrustLevel[0] && anonymous?
|
||||
end
|
||||
|
||||
def can_see_staff_info?(user)
|
||||
user && is_staff?
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue