Fix bug with logging out while on the EIC console page
Previously this would trigger a JS error
@@ -134,6 +134,11 @@ var main = function() {
fullWidth: true
});
+ if (!user || user.isGuest) {
+ Webfield2.ui.errorMessage('You must be logged in to access this page.');
+ return;
+ }
+
loadData()
.then(formatData)
.then(renderData)
