diff --git a/src/components/permissions/permissions.tsx b/src/components/permissions/permissions.tsx index 5a14411ea..6c43db379 100644 --- a/src/components/permissions/permissions.tsx +++ b/src/components/permissions/permissions.tsx @@ -69,7 +69,7 @@ const PermissionsBase: React.FC = ({ const ocp = hasOcpAccess(userAccess); const rhel = isFinsightsFeatureEnabled && hasRhelAccess(userAccess); const ros = isRosFeatureEnabled && hasRosAccess(userAccess); - const settings = isSettingsFeatureEnabled && hasSettingsAccess(userAccess); + const settings = (costModel || hasSettingsAccess(userAccess)) && isSettingsFeatureEnabled; switch (pathname) { case formatPath(routes.explorer.path): @@ -102,7 +102,7 @@ const PermissionsBase: React.FC = ({ case formatPath(routes.rhelDetailsBreakdown.path): return rhel; case formatPath(routes.settings.path): - return costModel || settings; + return settings; default: return false; } diff --git a/src/store/costModels/actions.ts b/src/store/costModels/actions.ts index dd8c06178..007c7cdb2 100644 --- a/src/store/costModels/actions.ts +++ b/src/store/costModels/actions.ts @@ -128,7 +128,7 @@ export const redirectToCostModelFromSourceUuid = (source_uuid: string, router: R const uuid = res.data.data[0].uuid; router.navigate( `${formatPath( - selectIsSettingsFeatureEnabled(getState()) ? routes.settings.path : routes.costModelsDetails.path + selectIsSettingsFeatureEnabled(getState()) ? routes.costModel.basePath : routes.costModelsDetails.path )}/${uuid}` ); })