diff --git a/packages/app-shell/src/app-shell.js b/packages/app-shell/src/app-shell.js index 51653a6876fae1fd3bb4e203256e94a4915f5381..e62935cbd8631f2ee5270fca1969612a01d0edd7 100644 --- a/packages/app-shell/src/app-shell.js +++ b/packages/app-shell/src/app-shell.js @@ -73,7 +73,7 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) { this.boundCloseMenuHandler = this.hideMenu.bind(this); this.initateOpenMenu = false; - this.auth = {}; + this.auth = null; this.langDir = ''; } @@ -332,6 +332,11 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) { break; case 'auth': { + // kill event if auth gets default + if (this.auth === null) { + break; + } + if (this.auth.person) { this._roles = this.auth.person['roles']; } else {