Fix an issue with anonymous user unable to store new pads
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user