Fix an issue with anonymous user unable to store new pads

This commit is contained in:
yflory
2017-04-28 17:11:07 +02:00
parent 56aaeea003
commit afb0061d7b
2 changed files with 3 additions and 2 deletions

View File

@@ -434,7 +434,7 @@ define([
files[FILES_DATA].push(data);
cb();
};
if (!Cryptpad.isLoggedIn() || !AppConfig.enablePinning) { todo(); }
if (!Cryptpad.isLoggedIn() || !AppConfig.enablePinning) { return void todo(); }
Cryptpad.pinPads([Cryptpad.hrefToHexChannelId(data.href)], function (e, hash) {
if (e) { return void cb(e); }
todo();