mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Impersonation events are already recorded in the impersonatedUsers collection whenever an admin impersonates a user (e.g. to export a private board). Surface them as a new admin report, newest-first, with the same server-side search + pagination as the other reports. - server/publications/impersonationReport.js: impersonationReport publication (admin-only, sort createdAt -1, limit/skip, $or search over admin/user/board/ attachment ids and reason) + getImpersonationReportCount method. Also publishes the referenced admin/impersonated user docs (same fields the People panel uses) so usernames resolve and the Edit user popup has its data. - adminReports.jade/.js: new Impersonation side-menu entry, sub-template (Date, Admin, Impersonated user, Board, Reason), pagination + search wired through the shared reportConfig. Clicking a username opens the same editUser popup as Admin Panel / People. - i18n: impersonationReportTitle, impersonation-admin, impersonation-user, reason.