This commit is contained in:
KingKDot
2026-05-19 00:46:30 -05:00
parent bbd61af672
commit 116beff515
31 changed files with 2170 additions and 521 deletions
@@ -852,10 +852,7 @@ export async function handleBuildRoutes(
}
if (req.method === "POST" && url.pathname === "/api/build/update-all") {
requirePermission(user, "clients:build");
if (user.role !== "admin") {
return new Response("Forbidden: Admin access required", { status: 403 });
}
requirePermission(user, "deploys:manage");
let body: any = {};
try {