Skip to content

Fix admin navigation detour via student space#13

Draft
ERIC74SONG96 wants to merge 1 commit into
mainfrom
cursor/fix-admin-mon-espace-routing-2c74
Draft

Fix admin navigation detour via student space#13
ERIC74SONG96 wants to merge 1 commit into
mainfrom
cursor/fix-admin-mon-espace-routing-2c74

Conversation

@ERIC74SONG96
Copy link
Copy Markdown
Owner

Résumé

  • ajoute un role hint local (sa_role_hint_v1) pour mémoriser rapidement si l’utilisateur courant est admin
  • met à jour la navigation profil (sa-nav-session.js) pour envoyer directement un admin vers /admin au lieu de /espace-etudiant/dashboard
  • enregistre/efface ce hint pendant les contrôles d’accès admin et les déconnexions (admin.js, espace-etudiant.mjs, espace-dashboard.mjs)
  • accélère le flux post-auth de /espace-etudiant/ en vérifiant is_admin avant les opérations non essentielles côté espace étudiant

Impact attendu

  • quand un admin clique sur « Mon espace », il arrive directement sur l’admin
  • plus de passage visible/lent par l’espace non-admin avant redirection
  • comportement cohérent après login/logout
Open in Web Open in Cursor 

Co-authored-by: ERIC74SONG96 <ERIC74SONG96@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
project-laf63 Ready Ready Preview, Comment May 20, 2026 3:16pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants