mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
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.
This commit is contained in:
parent
c2d8ca212b
commit
cbd393d56b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue