mirror of
https://github.com/bitwarden/server
synced 2025-12-15 15:53:59 +00:00
check enabled too
This commit is contained in:
@@ -838,7 +838,7 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
var orgAbilities = await _applicationCacheService.GetOrganizationAbilitiesAsync();
|
var orgAbilities = await _applicationCacheService.GetOrganizationAbilitiesAsync();
|
||||||
return _currentContext.Organizations.Any(o => orgAbilities.ContainsKey(o.Id) &&
|
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,
|
private async Task<IdentityResult> UpdatePasswordHash(User user, string newPassword,
|
||||||
|
|||||||
Reference in New Issue
Block a user