1
0
forked from baron/baron-sso

역할별 403 권한 안내 문구 일관화

This commit is contained in:
2026-03-19 13:34:47 +09:00
parent 07f4c1258c
commit 44231b1c2e
7 changed files with 136 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ import {
import * as React from "react";
import { Badge } from "../../components/ui/badge";
import { Button } from "../../components/ui/button";
import { ForbiddenMessage } from "../../components/common/ForbiddenMessage";
import {
Card,
CardContent,
@@ -170,14 +171,7 @@ function AuditLogsPage() {
if (query.error) {
const axiosError = query.error as AxiosError<{ error?: string }>;
if (axiosError.response?.status === 403) {
return (
<div className="p-8 text-center text-red-500">
{t(
"msg.dev.audit.forbidden",
"감사 로그를 조회할 권한이 없습니다. 관리자에게 권한을 요청해주세요.",
)}
</div>
);
return <ForbiddenMessage resourceToken="audit" />;
}
const errMsg =