1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 20:53:16 +00:00

support access all for collection user details

This commit is contained in:
Kyle Spearrin
2017-05-08 11:27:21 -04:00
parent 2c604d61b2
commit 9936f69481
9 changed files with 56 additions and 25 deletions

View File

@@ -41,7 +41,7 @@ namespace Bit.Core.Repositories.SqlServer
{
var result = await connection.QueryFirstOrDefaultAsync<bool>(
$"[{Schema}].[Cipher_ReadCanEditByIdUserId]",
new { UserId = userId, CipherId = cipherId },
new { UserId = userId, Id = cipherId },
commandType: CommandType.StoredProcedure);
return result;

View File

@@ -113,7 +113,8 @@ namespace Bit.Core.Repositories.SqlServer
}
}
public async Task<Tuple<OrganizationUserUserDetails, ICollection<CollectionUserCollectionDetails>>> GetDetailsByIdAsync(Guid id)
public async Task<Tuple<OrganizationUserUserDetails, ICollection<CollectionUserCollectionDetails>>>
GetDetailsByIdAsync(Guid id)
{
using(var connection = new SqlConnection(ConnectionString))
{