-
Notifications
You must be signed in to change notification settings - Fork 36
Trigger "Last Access"
Thomas Niedermaier edited this page Aug 22, 2025
·
1 revision
- Tracks course access of/with every role
- "Login as" does not trigger, the original/real user has to login
SELECT
la.courseid
FROM
m_user_enrolments ue
JOIN m_enrol e ON ue.enrolid = e.id
JOIN m_user_lastaccess la ON ue.userid = la.userid
WHERE
e.courseid = la.courseid
GROUP BY
la.courseid
HAVING
MAX(la.timeaccess) < 1755762501