fix: only allow cron on logged in
Unit Tests / unit-tests (push) Has been cancelled

This commit is contained in:
Jayden Pyles
2025-04-24 22:14:00 -05:00
parent 3475d66995
commit de4ccfbf3a
@@ -8,6 +8,8 @@ import {
TableCell,
TableBody,
Button,
Box,
Typography,
} from "@mui/material";
import Cookies from "js-cookie";
@@ -51,6 +53,16 @@ export const CronJobs = ({
}
};
if (!user) {
return (
<Box>
<Typography variant="h6">
Please login to view your cron jobs
</Typography>
</Box>
);
}
return (
<div>
<CreateCronJobs availableJobs={jobs} user={user} />