From 49cfdc8c00c248f451bb0ca59b07531132fc5498 Mon Sep 17 00:00:00 2001 From: Yashas Date: Mon, 24 Aug 2026 15:21:00 +0530 Subject: [PATCH] Show the signed-in role in the header RBAC is what this demo argues, so which persona you are signed in as should never be a guess while presenting. Co-Authored-By: Claude Opus 5 (1M context) --- src/layout/Shell.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layout/Shell.jsx b/src/layout/Shell.jsx index 4ebf191..0ed67f0 100644 --- a/src/layout/Shell.jsx +++ b/src/layout/Shell.jsx @@ -27,7 +27,10 @@ export default function Shell() {
{user?.name || user?.email || 'Signed in'} - {user?.email} + {/* The role is shown because RBAC is the demo: what this person can + and cannot do is the point, so who they are signed in as should + never be a guess. */} + {(user?.roles || []).join(', ') || user?.email}