1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

events for collections, groups, and org users

This commit is contained in:
Kyle Spearrin
2017-12-01 16:00:30 -05:00
parent a8fefb54c4
commit 28770d3761
20 changed files with 182 additions and 27 deletions

View File

@ -135,7 +135,7 @@ namespace Bit.Api.Controllers
throw new NotFoundException();
}
await _collectionRepository.DeleteAsync(collection);
await _collectionService.DeleteAsync(collection);
}
[HttpDelete("{id}/user/{orgUserId}")]

View File

@ -121,7 +121,7 @@ namespace Bit.Api.Controllers
throw new NotFoundException();
}
await _groupRepository.DeleteAsync(group);
await _groupService.DeleteAsync(group);
}
[HttpDelete("{id}/user/{orgUserId}")]

View File

@ -178,8 +178,8 @@ namespace Bit.Api.Controllers
{
throw new BadRequestException("Only owners can update other owners.");
}
await _organizationUserRepository.UpdateGroupsAsync(organizationUser.Id, model.GroupIds.Select(g => new Guid(g)));
await _organizationService.UpdateUserGroupsAsync(organizationUser, model.GroupIds.Select(g => new Guid(g)));
}
[HttpDelete("{id}")]