File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/Pages/GlobalConfigurations/Authorization Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -410,12 +410,7 @@ const isRoleCustom = (roleValue: string) =>
410
410
export function parseData ( dataList : any [ ] , entity : string , accessType ?: string ) {
411
411
switch ( entity ) {
412
412
case EntityTypes . DIRECT :
413
- if ( accessType === ACCESS_TYPE_MAP . DEVTRON_APPS ) {
414
- return dataList . filter (
415
- ( role ) => role . accessType === ACCESS_TYPE_MAP . DEVTRON_APPS && ! isRoleCustom ( role . value ) ,
416
- )
417
- }
418
- return dataList . filter ( ( role ) => role . accessType === ACCESS_TYPE_MAP . HELM_APPS && ! isRoleCustom ( role . value ) )
413
+ return dataList . filter ( ( role ) => role . accessType === accessType && ! isRoleCustom ( role . value ) )
419
414
420
415
case EntityTypes . CLUSTER :
421
416
case EntityTypes . CHART_GROUP :
You can’t perform that action at this time.
0 commit comments