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
muxator 2019-03-27 00:08:11 +01:00 committed by muxator
parent c2d8ca212b
commit cbd393d56b
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ exports.handleMessage = async function(client, message)
if (padId.indexOf("r.") === 0) {
// 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);