Fix perm level 2 redirect

This commit is contained in:
Aurora Lahtela 2023-05-27 06:43:39 +03:00 committed by GitHub
parent 3531643da1
commit f66ed6344a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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