fix: prevent user rename if they are an oidc user
This commit is contained in:
parent
8d1132606a
commit
0ad578e651
3 changed files with 47 additions and 16 deletions
|
|
@ -48,7 +48,7 @@ export default function UserMenu({ user }: MenuProps) {
|
|||
/>
|
||||
)}
|
||||
|
||||
<Menu>
|
||||
<Menu disabledKeys={user.provider === 'oidc' ? ['rename'] : []}>
|
||||
<Menu.IconButton
|
||||
label="Machine Options"
|
||||
className={cn(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue