Skip to content

Commit

Permalink
fix: 관리자가 아닌 사용자에게 네브바에 불필요한 문자가 보이는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
geongyu09 committed Sep 18, 2024
1 parent 7eb5b70 commit 6acc530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/common/navbar/NavbarManagePassState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export const NavbarManagePassState = ({
const generation = currentPath.split("/")[2];
const { data: userData, isLoading } = useQuery(["user"], getMyInfo);
if (isLoading || !userData) {
return <div>Loading...</div>;
return null;
}

if (userData.role !== "ROLE_OPERATION") {
return <div>관리자만 접근이 가능합니다.</div>;
return null;
}

return (
Expand Down

0 comments on commit 6acc530

Please sign in to comment.