Skip to content

Commit 5115097

Browse files
revert change in template dialog
1 parent b5e9a05 commit 5115097

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/react-ui/src/app/features/templates/components/select-flow-template-dialog-content.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useCheckAccessAndRedirect } from '@/app/common/hooks/authorization-hooks';
1+
import { useAuthorization } from '@/app/common/hooks/authorization-hooks';
22
import { useTheme } from '@/app/common/providers/theme-provider';
33
import { OPENOPS_CONNECT_TEMPLATES_URL } from '@/app/constants/cloud';
44
import { 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 = () => {

0 commit comments

Comments
 (0)