mirror of
https://github.com/bitwarden/server
synced 2025-12-26 21:23:39 +00:00
pass orgid from app code rather than querying it
This commit is contained in:
@@ -46,13 +46,14 @@ namespace Bit.Core.Repositories.SqlServer
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<ICollection<CollectionUserUserDetails>> GetManyDetailsByCollectionIdAsync(Guid collectionId)
|
||||
public async Task<ICollection<CollectionUserUserDetails>> GetManyDetailsByCollectionIdAsync(Guid organizationId,
|
||||
Guid collectionId)
|
||||
{
|
||||
using(var connection = new SqlConnection(ConnectionString))
|
||||
{
|
||||
var results = await connection.QueryAsync<CollectionUserUserDetails>(
|
||||
$"[{Schema}].[CollectionUserUserDetails_ReadByCollectionId]",
|
||||
new { CollectionId = collectionId },
|
||||
new { OrganizationId = organizationId, CollectionId = collectionId },
|
||||
commandType: CommandType.StoredProcedure);
|
||||
|
||||
return results.ToList();
|
||||
|
||||
Reference in New Issue
Block a user