From 12718d4bde6280dc84faa78c7b0e43f81466a5bf Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 21 Apr 2021 17:21:04 +0200 Subject: [PATCH] Fix infinite loading screen (maybe) --- www/common/outer/async-store.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 0dd2b0613..bf5359833 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1656,7 +1656,9 @@ define([ } else if (teams.some(function (teamId) { // We're not allowed: check our teams var ed = Util.find(store, ['proxy', 'teams', teamId, 'keys', 'drive', 'edPublic']); + var edPrivate = Util.find(store, ['proxy', 'teams', teamId, 'keys', 'drive', 'edPrivate']); if (allowed.indexOf(ed) === -1) { return false; } + if (!edPrivate) { return false; } // XXX: Only editors can authenticate... // This team is allowed: use its rpc var t = teamModule.getTeam(teamId); _store = t;