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;
return prevAuth;
});
} else if (token !== "" && props.username === "pm") {
} else if (token !== "") {
props.setAuthority((prevAuth) => {
prevAuth = 2;
return prevAuth;
});
} else if (token !== "" && props.username === "user") {
props.setAuthority((prevAuth) => {
prevAuth = 3;
return prevAuth;
});
}
} else {
console.error("Token was undefined");