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.pull/3587/head
parent
c2d8ca212b
commit
cbd393d56b
|
@ -287,7 +287,7 @@ exports.handleMessage = async function(client, message)
|
||||||
|
|
||||||
if (padId.indexOf("r.") === 0) {
|
if (padId.indexOf("r.") === 0) {
|
||||||
// Pad is readOnly, first get the real Pad ID
|
// Pad is readOnly, first get the real Pad ID
|
||||||
padId = await readOnlyManager.getPadId(padID);
|
padId = await readOnlyManager.getPadId(padId);
|
||||||
}
|
}
|
||||||
|
|
||||||
let { accessStatus } = await securityManager.checkAccess(padId, auth.sessionID, auth.token, auth.password);
|
let { accessStatus } = await securityManager.checkAccess(padId, auth.sessionID, auth.token, auth.password);
|
||||||
|
|
Loading…
Reference in New Issue