From 1f0af1bc11ee881affbf33b27c5eef46e5da762a Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Mon, 28 Dec 2020 17:14:09 +0100 Subject: [PATCH] fix: hide sessions management --- app/assets/javascripts/directives/views/accountMenu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/directives/views/accountMenu.ts b/app/assets/javascripts/directives/views/accountMenu.ts index e3d057847..21ed1a884 100644 --- a/app/assets/javascripts/directives/views/accountMenu.ts +++ b/app/assets/javascripts/directives/views/accountMenu.ts @@ -135,7 +135,7 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> { async $onInit() { super.$onInit(); this.setState({ - showSessions: await this.application.userCanManageSessions() + showSessions: this.appState.enableUnfinishedFeatures && await this.application.userCanManageSessions() }); const sync = this.appState.sync;