From 5c0650afe59c62134b47161dcd064a08b0ead772 Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Wed, 5 Nov 2025 17:03:56 +0900 Subject: [PATCH] Add grant check to FAQ inquiry button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add permission check (64, 'R') to onClickToNavigation in FAQ list page - Prevent navigation to QNA list without proper read permission - Show localized permission error message when access is denied 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/pages/support/faq/list-page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/support/faq/list-page.tsx b/src/pages/support/faq/list-page.tsx index ce3ab13..b8037d4 100644 --- a/src/pages/support/faq/list-page.tsx +++ b/src/pages/support/faq/list-page.tsx @@ -7,7 +7,7 @@ import { useFaqListMutation } from '@/entities/support/api/use-faq-list-mutation import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant'; import { DetailData, FaqItem, FaqListParams, FaqListResponse, SearchCl } from '@/entities/support/model/types'; import { SupportFaqItem } from '@/entities/support/ui/faq-item'; -import { +import { useSetHeaderTitle, useSetHeaderType, useSetFooterMode, @@ -15,6 +15,7 @@ import { } from '@/widgets/sub-layout/use-sub-layout'; import useIntersectionObserver from '@/widgets/intersection-observer'; import { FaqDetail } from '@/entities/support/ui/detail/faq-detail'; +import { checkGrant } from '@/shared/lib/check-grant'; import { showAlert } from '@/widgets/show-alert'; export const FaqListPage = () => { @@ -137,6 +138,10 @@ export const FaqListPage = () => { }; const onClickToNavigation = () => { + if (!checkGrant(64, 'R')) { + showAlert(t('common.nopermission')); + return; + } navigate(PATHS.support.qna.list); };