fix(auth): user has no roles should redirect error message page (#6408)

This commit is contained in:
Sheldon Guo 2025-03-11 03:46:28 +08:00 committed by GitHub
parent 6d929de82e
commit 69c75566e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {