@rubytech/create-maxy-code 0.1.337 → 0.1.338
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.
- package/package.json +1 -1
- package/payload/server/server.js +4 -6
package/package.json
CHANGED
package/payload/server/server.js
CHANGED
|
@@ -8546,9 +8546,8 @@ function createWebchatRoutes(deps) {
|
|
|
8546
8546
|
}
|
|
8547
8547
|
if (explicitTarget && target !== void 0) {
|
|
8548
8548
|
const t = readTargetOwner(target);
|
|
8549
|
-
if (t.found &&
|
|
8550
|
-
console.
|
|
8551
|
-
return c.json({ error: "session not found" }, 404);
|
|
8549
|
+
if (t.found && t.owner !== null && t.owner !== requesterUserId) {
|
|
8550
|
+
console.log(`[webchat:inbound] op=cross-admin-send key=${target.slice(0, 8)} owner=${t.owner.slice(0, 8)} requester=${requesterUserId ? requesterUserId.slice(0, 8) : "none"}`);
|
|
8552
8551
|
}
|
|
8553
8552
|
}
|
|
8554
8553
|
if (target !== void 0) {
|
|
@@ -8716,9 +8715,8 @@ ${note}` : note;
|
|
|
8716
8715
|
return c.json({ error: "invalid session id" }, 400);
|
|
8717
8716
|
}
|
|
8718
8717
|
const owned = readTargetOwner(target);
|
|
8719
|
-
if (owned.found &&
|
|
8720
|
-
console.
|
|
8721
|
-
return c.json({ error: "session not found" }, 404);
|
|
8718
|
+
if (owned.found && owned.owner !== null && owned.owner !== requesterUserId) {
|
|
8719
|
+
console.log(`[webchat:inbound] op=cross-admin-view key=${target.slice(0, 8)} owner=${owned.owner.slice(0, 8)} requester=${requesterUserId ? requesterUserId.slice(0, 8) : "none"}`);
|
|
8722
8720
|
}
|
|
8723
8721
|
const { projectDir: projectDir2, channel } = locateSession(target);
|
|
8724
8722
|
let resolvedProjectDir = projectDir2;
|