File tree Expand file tree Collapse file tree
packages/react-ui/src/app/features/templates/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { useCheckAccessAndRedirect } from '@/app/common/hooks/authorization-hooks' ;
1+ import { useAuthorization } from '@/app/common/hooks/authorization-hooks' ;
22import { useTheme } from '@/app/common/providers/theme-provider' ;
33import { OPENOPS_CONNECT_TEMPLATES_URL } from '@/app/constants/cloud' ;
44import { ExpandedTemplate } from '@/app/features/templates/components/expanded-template' ;
@@ -97,9 +97,8 @@ const SelectFlowTemplateDialogContent = ({
9797 const ownerLogoUrl = useOwnerLogoUrl ( ) ;
9898 const { createPollingInterval } = useUserInfoPolling ( ) ;
9999 const { isCloudUser } = useShowTemplatesBanner ( ) ;
100- const hasWriteFlowPermission = useCheckAccessAndRedirect (
101- Permission . WRITE_FLOW ,
102- ) ;
100+ const { checkAccess } = useAuthorization ( ) ;
101+ const hasWriteFlowPermission = checkAccess ( Permission . WRITE_FLOW ) ;
103102 const isFullCatalog = ! isTemplatePreselected && isCloudUser ;
104103
105104 const onExploreMoreClick = ( ) => {
You can’t perform that action at this time.
0 commit comments