From a1f0f046600126d98148c4bd0fb9e7a813540ad8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 29 Aug 2018 13:51:24 -0400 Subject: [PATCH] check enabled too --- src/Core/Services/Implementations/UserService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index a2ce5d91f9..076e6b68bb 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -838,7 +838,7 @@ namespace Bit.Core.Services var orgAbilities = await _applicationCacheService.GetOrganizationAbilitiesAsync(); return _currentContext.Organizations.Any(o => orgAbilities.ContainsKey(o.Id) && - orgAbilities[o.Id].UsersGetPremium); + orgAbilities[o.Id].UsersGetPremium && orgAbilities[o.Id].Enabled); } private async Task UpdatePasswordHash(User user, string newPassword,