Skip to content

Commit cbd393d

Browse files
committed
handler/PadMessageHandler.js: handleMessage() got the wrong padId for read only pads
This was almost guaranteed to be broken. Found by the Typescript compiler when doing an experimental conversion.
1 parent c2d8ca2 commit cbd393d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/handler/PadMessageHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ exports.handleMessage = async function(client, message)
287287

288288
if (padId.indexOf("r.") === 0) {
289289
// Pad is readOnly, first get the real Pad ID
290-
padId = await readOnlyManager.getPadId(padID);
290+
padId = await readOnlyManager.getPadId(padId);
291291
}
292292

293293
let { accessStatus } = await securityManager.checkAccess(padId, auth.sessionID, auth.token, auth.password);

0 commit comments

Comments
 (0)