changed toast timer, redirect behavior in disptach, VehicleNames

This commit is contained in:
PxlLoewe
2025-06-06 15:05:50 -07:00
parent fa6321b808
commit b178167762
7 changed files with 70 additions and 44 deletions

View File

@@ -8,7 +8,11 @@ export default () => {
const session = useSession();
useEffect(() => {
if (session.status === "authenticated" && session.data?.user) {
if (session.status !== "authenticated") {
router.replace("/login");
return;
}
if (session.data?.user) {
const hasDispoPermission = session.data.user.permissions?.includes("DISPO");
if (hasDispoPermission) {