2
0
Fork 0
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:
Régis Hanol 2015-01-05 19:49:32 +01:00
parent 47c4179e29
commit e20078a9dc
7 changed files with 62 additions and 38 deletions

View file

@ -55,4 +55,8 @@ module UserGuardian
user.trust_level == TrustLevel[0] && anonymous?
end
def can_see_staff_info?(user)
user && is_staff?
end
end