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:
parent
7ce5464e52
commit
a1f0f04660
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user