1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-05 18:12:48 -05:00

Subvault APIs

This commit is contained in:
Kyle Spearrin
2017-03-07 23:06:14 -05:00
parent 7ca8629a13
commit 7f4e79af63
16 changed files with 363 additions and 1 deletions

View File

@ -35,7 +35,7 @@ namespace Bit.Api.Controllers
public async Task<FolderResponseModel> Get(string id)
{
var userId = _userService.GetProperUserId(User).Value;
var folder = await _cipherRepository.GetByIdAsync(new Guid(id), _userService.GetProperUserId(User).Value);
var folder = await _cipherRepository.GetByIdAsync(new Guid(id), userId);
if(folder == null || folder.Type != Core.Enums.CipherType.Folder)
{
throw new NotFoundException();