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

@@ -574,7 +574,7 @@ define([
if (!contains) {
var data = makePad(href, name);
getStore().pushData(data, function (e, state) {
getStore().pushData(data, function (e) {
if (e) {
if (e === 'E_OVER_LIMIT') {
common.alert(Messages.pinLimitNotPinned, null, true);
@@ -725,6 +725,7 @@ define([
};
var isOverPinLimit = common.isOverPinLimit = function (cb) {
if (!common.isLoggedIn()) { return void cb(null, false); }
var usage;
var andThen = function (e, limit) {
if (e) { return void cb(e); }