mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
FIX: includes staff in staff_logins report (#6945)
This commit is contained in:
parent
c88fd49591
commit
49193ca3bf
@ -1364,7 +1364,7 @@ class Report
|
||||
FROM (
|
||||
SELECT DISTINCT ON (t.client_ip, t.user_id) t.client_ip, t.user_id, t.created_at
|
||||
FROM user_auth_token_logs t
|
||||
WHERE t.user_id IN (#{User.admins.pluck(:id).join(',')})
|
||||
WHERE t.user_id IN (#{User.staff.pluck(:id).join(',')})
|
||||
AND t.created_at >= :start_date
|
||||
AND t.created_at <= :end_date
|
||||
ORDER BY t.client_ip, t.user_id, t.created_at DESC
|
||||
|
Loading…
x
Reference in New Issue
Block a user