Skip to content

fix(auth): redirect non-admin users to /mis-dashboards after login

Infraestructura requested to merge diego-dev into main

Admin users land on /dashboard as before. Non-admin users (operativo, reader, viewer) are redirected to /mis-dashboards which shows only their area-specific widgets. Explicit ?redirect= param in the URL still takes priority for both roles.

Applied to both email/password and Google OAuth login flows.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Merge request reports

Loading