@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.
@@ -9333,6 +9333,9 @@ var handleAdminNetworkPush = async (req, url, env, ctx) => {
9333
9333
  if (req.method !== "POST" || url.pathname !== "/api/admin/network/push") return null;
9334
9334
  const got = await gate6(req, env, ctx);
9335
9335
  if ("response" in got) return got.response;
9336
+ if (!await networkWriteAllowed(req, got.db, got.user, ctx)) {
9337
+ return json({ error: "super-admin required", code: "super_admin_required" }, 403);
9338
+ }
9336
9339
  let body;
9337
9340
  try {
9338
9341
  body = await req.json();