File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ const CustomApiTokenOverlay: FC<Props> = props => {
9292 // filter out Subsriptions resource type if the UI is not enabled
9393 . filter (
9494 p =>
95- p !== ResourceType . Subscriptions || isFlagEnabled ( 'subscriptionsUI' )
95+ ( p !== ResourceType . Subscriptions ||
96+ isFlagEnabled ( 'subscriptionsUI' ) ) &&
97+ String ( p ) !== 'instance'
9698 )
9799 . forEach ( resource => {
98100 if ( resource === ResourceType . Telegrafs ) {
Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ export const allAccessPermissions = (
4949 userID : string
5050) : Permission [ ] => {
5151 const withOrgID = ensureT ( orgID , userID )
52- return allPermissionTypes . flatMap ( withOrgID )
52+ return allPermissionTypes
53+ . filter ( perm => String ( perm ) !== 'instance' )
54+ . flatMap ( withOrgID )
5355}
5456
5557export const formatResources = resourceNames => {
@@ -58,7 +60,9 @@ export const formatResources = resourceNames => {
5860 item !== ResourceType . Buckets &&
5961 item !== ResourceType . Telegrafs &&
6062 // filter out Subsriptions resource type if the UI is not enabled
61- ( item !== ResourceType . Subscriptions || isFlagEnabled ( 'subscriptionsUI' ) )
63+ ( item !== ResourceType . Subscriptions ||
64+ isFlagEnabled ( 'subscriptionsUI' ) ) &&
65+ String ( item ) !== 'instance'
6266 )
6367 resources . sort ( )
6468 resources . unshift ( ResourceType . Telegrafs )
You can’t perform that action at this time.
0 commit comments