@odla-ai/chapter 0.48.2 → 0.48.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9374,6 +9374,9 @@ var handleAdminNetworkPush = async (req, url, env, ctx) => {
9374
9374
  if (req.method !== "POST" || url.pathname !== "/api/admin/network/push") return null;
9375
9375
  const got = await gate6(req, env, ctx);
9376
9376
  if ("response" in got) return got.response;
9377
+ if (!await networkWriteAllowed(req, got.db, got.user, ctx)) {
9378
+ return json({ error: "super-admin required", code: "super_admin_required" }, 403);
9379
+ }
9377
9380
  let body;
9378
9381
  try {
9379
9382
  body = await req.json();