From c9c3e6d98daf94e488f53db89a172e6968005a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Bispo?= Date: Mon, 20 Jun 2022 11:17:20 +0100 Subject: [PATCH] PS-70 show toggle only if it's premium --- src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs index 9229404d3..b60bc2774 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs @@ -228,13 +228,14 @@ namespace Bit.App.Pages } PageTitle = ShowVaultFilter ? AppResources.Vaults : AppResources.MyVault; } + var canAccessPremium = await _stateService.CanAccessPremiumAsync(); _doingLoad = true; LoadedOnce = true; ShowNoData = false; Loading = true; ShowList = false; ShowAddCipherButton = !Deleted; - ShowTOTPFilter = Type == CipherType.Login; + ShowTOTPFilter = Type == CipherType.Login && canAccessPremium; var groupedItems = new List(); var page = Page as GroupingsPage;