FIX: makes staff_logins show only admins (#6948)

This commit is contained in:
Joffrey JAFFEUX 2019-01-25 11:28:52 +01:00 committed by GitHub
parent de47b35b2d
commit f461a9971f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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.staff.pluck(:id).join(',')})
WHERE t.user_id IN (#{User.admins.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

View File

@ -1199,12 +1199,12 @@ en:
login_time: Login Time
description: "Details of new logins that differ suspiciously from previous logins."
staff_logins:
title: "Staff Logins"
title: "Admin Logins"
labels:
user: User
location: Location
login_at: Login at
description: "List of admin and moderator login times with locations."
description: "List of admin login times with locations."
top_uploads:
title: "Top Uploads"
labels: