Add permission checks and localization improvements

- Add grant check (64, 'X') to QNA register page
- Add grant check (45, 'X') to user login auth modification
- Replace hardcoded Korean permission messages with i18n key 'common.nopermission'
- Add 'nopermission' translation key to both en.json and ko.json
- Update .env.development to use development API endpoints

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-11-05 16:59:08 +09:00
parent fe012cbda3
commit 930196669a
22 changed files with 39 additions and 25 deletions

View File

@@ -34,7 +34,7 @@ export const MenuCategory = ({
itemIndex
}: MenuCategoryProps) => {
const { navigate } = useNavigate();
const { i18n } = useTranslation();
const { t, i18n } = useTranslation();
const [favoriteItems, setFavoriteItems] = useState<Array<UserFavorite>>([]);
const [menuIds, setMenuIds] = useState<Array<number | undefined>>([]);
@@ -47,7 +47,7 @@ export const MenuCategory = ({
}
}
else{
showAlert('권한이 없습니다.');
showAlert(t('common.nopermission'));
}
};