do not pass historical author data to read only users
parent
eb611e2b36
commit
b32aaaeb1b
|
@ -1013,9 +1013,15 @@ function handleClientReady(client, message)
|
||||||
var apool = attribsForWire.pool.toJsonable();
|
var apool = attribsForWire.pool.toJsonable();
|
||||||
atext.attribs = attribsForWire.translated;
|
atext.attribs = attribsForWire.translated;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Warning: never ever send padIds.padId to the client. If the
|
// Warning: never ever send padIds.padId to the client. If the
|
||||||
// client is read only you would open a security hole 1 swedish
|
// client is read only you would open a security hole 1 swedish
|
||||||
// mile wide...
|
// 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 = {
|
var clientVars = {
|
||||||
"accountPrivs": {
|
"accountPrivs": {
|
||||||
"maxRevisions": 100
|
"maxRevisions": 100
|
||||||
|
|
Loading…
Reference in New Issue