From 69c75566e06b38007ff775711280008feae174fb Mon Sep 17 00:00:00 2001 From: Sheldon Guo Date: Tue, 11 Mar 2025 03:46:28 +0800 Subject: [PATCH] fix(auth): user has no roles should redirect error message page (#6408) --- .../plugins/@nocobase/plugin-auth/src/client/interceptors.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/interceptors.ts b/packages/plugins/@nocobase/plugin-auth/src/client/interceptors.ts index 6f78a89d7c..d1ad83715c 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/interceptors.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/interceptors.ts @@ -20,6 +20,7 @@ const AuthErrorCode = { EXPIRED_SESSION: 'EXPIRED_SESSION' as const, NOT_EXIST_USER: 'NOT_EXIST_USER' as const, SKIP_TOKEN_RENEW: 'SKIP_TOKEN_RENEW' as const, + USER_HAS_NO_ROLES_ERR: 'USER_HAS_NO_ROLES_ERR' as const, }; function removeBasename(pathname, basename) {