Everyone except admin has authority = 2

This commit is contained in:
Peter KW 2024-03-19 17:12:09 +01:00
parent 8dfe9dac96
commit cd84a2bb21

View file

@ -32,16 +32,11 @@ function LoginCheck(props: {
prevAuth = 1; prevAuth = 1;
return prevAuth; return prevAuth;
}); });
} else if (token !== "" && props.username === "pm") { } else if (token !== "") {
props.setAuthority((prevAuth) => { props.setAuthority((prevAuth) => {
prevAuth = 2; prevAuth = 2;
return prevAuth; return prevAuth;
}); });
} else if (token !== "" && props.username === "user") {
props.setAuthority((prevAuth) => {
prevAuth = 3;
return prevAuth;
});
} }
} else { } else {
console.error("Token was undefined"); console.error("Token was undefined");