mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
Fix perm level 2 redirect
This commit is contained in:
parent
3531643da1
commit
f66ed6344a
@ -75,7 +75,7 @@ const MainPageRedirect = () => {
|
||||
} else if (user.permissions.includes('page.player.other')) {
|
||||
return (<Navigate to={"/players"} replace={true}/>)
|
||||
} else if (user.permissions.includes('page.player.self')) {
|
||||
return (<Navigate to={"/player/" + user.linkedToUuid} replace={true}/>)
|
||||
return (<Navigate to={"/player/" + user.playerUUID} replace={true}/>)
|
||||
}
|
||||
};
|
||||
|
||||
@ -96,4 +96,4 @@ const MainPageRedirect = () => {
|
||||
}
|
||||
}
|
||||
|
||||
export default MainPageRedirect
|
||||
export default MainPageRedirect
|
||||
|
Loading…
Reference in New Issue
Block a user