Skip to content

Commit

Permalink
fix: Disable is_admin switcher in Organization API Keys (#4753)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Oct 23, 2024
1 parent fbfe317 commit 6d955b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/web/components/AdminAPIKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export class CreateAPIKey extends PureComponent {
})
}}
checked={is_admin}
disabled={!Utils.getPlansPermission('RBAC') && is_admin}
/>
</Row>
{!is_admin && (
Expand Down

0 comments on commit 6d955b4

Please sign in to comment.