mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
[EC-338] Update SCIM code naming conventions (revoked/restore) (#2140)
* Keep old endpoints but mark as deprecated * Do not change existing sproc naming
This commit is contained in:
@ -424,7 +424,7 @@ namespace Bit.Infrastructure.EntityFramework.Repositories
|
||||
}
|
||||
}
|
||||
|
||||
public async Task DeactivateAsync(Guid id)
|
||||
public async Task RevokeAsync(Guid id)
|
||||
{
|
||||
using (var scope = ServiceScopeFactory.CreateScope())
|
||||
{
|
||||
@ -433,7 +433,7 @@ namespace Bit.Infrastructure.EntityFramework.Repositories
|
||||
if (orgUser != null)
|
||||
{
|
||||
dbContext.Update(orgUser);
|
||||
orgUser.Status = OrganizationUserStatusType.Deactivated;
|
||||
orgUser.Status = OrganizationUserStatusType.Revoked;
|
||||
await dbContext.SaveChangesAsync();
|
||||
if (orgUser.UserId.HasValue)
|
||||
{
|
||||
@ -443,7 +443,7 @@ namespace Bit.Infrastructure.EntityFramework.Repositories
|
||||
}
|
||||
}
|
||||
|
||||
public async Task ActivateAsync(Guid id, OrganizationUserStatusType status)
|
||||
public async Task RestoreAsync(Guid id, OrganizationUserStatusType status)
|
||||
{
|
||||
using (var scope = ServiceScopeFactory.CreateScope())
|
||||
{
|
||||
|
Reference in New Issue
Block a user