We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8b935c + 37205d2 commit c9491e8Copy full SHA for c9491e8
1 file changed
src/hooks/useAuthRedirect.ts
@@ -43,7 +43,7 @@ const useAuthRedirect = () => {
43
44
if (
45
currentPage.startsWith('/mobile/admin') &&
46
- adminRole.includes(user.role)
+ !adminRole.includes(user.role)
47
) {
48
alert('관리자만 이용 가능한 페이지입니다.');
49
router.replace('/mobile/main');
0 commit comments