From 739903d511a17197613358b898b1553129bd762f Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 8 Sep 2017 14:00:49 +0200 Subject: [PATCH] don't check account usage if you aren't logged in --- www/common/cryptpad-common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 40dbee37a..050494b06 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1099,6 +1099,7 @@ define([ */ var LIMIT_REFRESH_RATE = 30000; // milliseconds common.createUsageBar = function (cb) { + if (!isLoggedIn()) { return cb("NOT_LOGGED_IN"); } // getPinnedUsage updates common.account.usage, and other values // so we can just use those and only check for errors var $container = $('', {'class':'limit-container'});