mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-28 20:04:26 +00:00
fix(webui): correct settings role check and tighten DTO role types
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user