🔀 :: (#1119) 미리보기에서 관리자 탭·운영 콘솔 진입 차단 - #1120
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
원인
previewMock 의 DEMO_ME 가
role: "ADMIN"+superAdmin: true라, 미리보기(데모)에서 관리자 탭·운영 콘솔의 nav 진입점과 라우트 가드를 모두 통과. 외부 잠재고객이 보는 데모에 관리/운영 화면이 노출됐음.수정
DEMO_ME 를 일반 사원으로 낮춤 —
role: "MEMBER",superAdmin: false,platformAdmin: false, position 사원. 진입점(AppLayout)·라우트 가드(App.tsx AdminOnly/ConsoleOnly)가 자동으로 차단. previewMock 은 미리보기 전용이라 실서비스 무영향.검증 (프리뷰)
/admin·/super-admin·/platformURL 직접 진입 모두/로 리다이렉트Closes #1119