Kick admins off springboard

This commit is contained in:
2024-07-23 16:45:59 +08:00
parent 4ffc3f216f
commit 4d1b623ec6

View File

@@ -30,6 +30,9 @@ export default function SpringboardPage() {
useEffect(() => { useEffect(() => {
retrieveUserInformation() retrieveUserInformation()
.then((response) => { .then((response) => {
if (response.accountType == 2) {
navigate("/admin");
}
setUserInformation(response); setUserInformation(response);
}) })
.catch((_) => { .catch((_) => {