Skip to content

Commit c9491e8

Browse files
committed
Merge branch 'develop'
2 parents c8b935c + 37205d2 commit c9491e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useAuthRedirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const useAuthRedirect = () => {
4343

4444
if (
4545
currentPage.startsWith('/mobile/admin') &&
46-
adminRole.includes(user.role)
46+
!adminRole.includes(user.role)
4747
) {
4848
alert('관리자만 이용 가능한 페이지입니다.');
4949
router.replace('/mobile/main');

0 commit comments

Comments
 (0)