fix(webui): correct settings role check and tighten DTO role types

This commit is contained in:
yiling
2026-06-10 09:58:46 +08:00
parent 2124238751
commit 3324d57fc5
3 changed files with 6 additions and 6 deletions
@@ -233,7 +233,7 @@ function TeamSettingsPage() {
)}
</button>
{me?.role === 'admin' && (
{me?.role === 'owner' && (
<button
onClick={() => setActiveTab('transcode')}
className={cn(
@@ -267,7 +267,7 @@ function TeamSettingsPage() {
)}
</button>
{me?.role === 'admin' && (
{me?.role === 'owner' && (
<>
<div className="mt-6 mb-2 px-4 text-xs font-semibold text-sidebar-foreground/60 uppercase tracking-wider pt-4 border-t border-sidebar-border">
AI