mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
do not pass historical author data to read only users
This commit is contained in:
parent
eb611e2b36
commit
b32aaaeb1b
1 changed files with 6 additions and 0 deletions
|
@ -1012,10 +1012,16 @@ function handleClientReady(client, message)
|
|||
var attribsForWire = Changeset.prepareForWire(atext.attribs, pad.pool);
|
||||
var apool = attribsForWire.pool.toJsonable();
|
||||
atext.attribs = attribsForWire.translated;
|
||||
|
||||
|
||||
|
||||
// Warning: never ever send padIds.padId to the client. If the
|
||||
// client is read only you would open a security hole 1 swedish
|
||||
// mile wide...
|
||||
// Heh, turns out we already did when we sent historicalAuthorData so
|
||||
// if it's a readonly pad request don't send the pad IDs of the author
|
||||
if(sessioninfos[client.id].readonly) historicalAuthorData = {};
|
||||
|
||||
var clientVars = {
|
||||
"accountPrivs": {
|
||||
"maxRevisions": 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue