fix: 顯示使用者角色以除錯 & 強化權限指派邏輯
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user