mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix(auth): user has no roles should redirect error message page (#6408)
This commit is contained in:
parent
6d929de82e
commit
69c75566e0
@ -20,6 +20,7 @@ const AuthErrorCode = {
|
|||||||
EXPIRED_SESSION: 'EXPIRED_SESSION' as const,
|
EXPIRED_SESSION: 'EXPIRED_SESSION' as const,
|
||||||
NOT_EXIST_USER: 'NOT_EXIST_USER' as const,
|
NOT_EXIST_USER: 'NOT_EXIST_USER' as const,
|
||||||
SKIP_TOKEN_RENEW: 'SKIP_TOKEN_RENEW' 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) {
|
function removeBasename(pathname, basename) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user