fix: 顯示使用者角色以除錯 & 強化權限指派邏輯
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 53s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-13 17:27:19 +08:00
parent 4d6d37743e
commit e3afc0b64a
2 changed files with 69 additions and 0 deletions

View File

@@ -352,6 +352,11 @@ export default function AuthenticatedLayout({
</span>
<span className="text-xs text-slate-500">
{user.username || 'Administrator'}
{user.roles && user.roles.length > 0 && (
<span className="block text-[10px] text-primary-main">
[{user.roles.join(', ')}]
</span>
)}
</span>
</div>
<div className="h-9 w-9 bg-slate-100 rounded-full flex items-center justify-center text-slate-600 group-hover:bg-primary-lightest group-hover:text-primary-main transition-all">