mirror of
https://github.com/bitwarden/server
synced 2025-12-20 10:13:39 +00:00
[EC-388] Enforce organization policies when restoring user (#2152)
This commit is contained in:
@@ -193,7 +193,7 @@ namespace Bit.Scim.Controllers.v2
|
||||
|
||||
if (model.Active && orgUser.Status == OrganizationUserStatusType.Revoked)
|
||||
{
|
||||
await _organizationService.RestoreUserAsync(orgUser, null);
|
||||
await _organizationService.RestoreUserAsync(orgUser, null, _userService);
|
||||
}
|
||||
else if (!model.Active && orgUser.Status != OrganizationUserStatusType.Revoked)
|
||||
{
|
||||
@@ -229,7 +229,7 @@ namespace Bit.Scim.Controllers.v2
|
||||
var active = activeProperty.GetBoolean();
|
||||
if (active && orgUser.Status == OrganizationUserStatusType.Revoked)
|
||||
{
|
||||
await _organizationService.RestoreUserAsync(orgUser, null);
|
||||
await _organizationService.RestoreUserAsync(orgUser, null, _userService);
|
||||
operationHandled = true;
|
||||
}
|
||||
else if (!active && orgUser.Status != OrganizationUserStatusType.Revoked)
|
||||
|
||||
Reference in New Issue
Block a user