Revert "do not pass historical author data to read only users"

This reverts commit b32aaaeb1b.
This commit is contained in:
Marcel Klehr 2013-10-07 18:54:57 +02:00
parent 7f42f70732
commit 9fac515885

View file

@ -1016,10 +1016,6 @@ function handleClientReady(client, message)
// 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