1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-21 21:41:21 +01:00

check enabled too

This commit is contained in:
Kyle Spearrin 2018-08-29 13:51:24 -04:00
parent 7ce5464e52
commit a1f0f04660

View File

@ -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<IdentityResult> UpdatePasswordHash(User user, string newPassword,