Kick admins off springboard
This commit is contained in:
@@ -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((_) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user