mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 10:02:47 -05:00
[AC-1139] Changed CollectionsController.Get_vNext method to use CollectionRepository.GetByIdAsync without userId
This commit is contained in:
@ -495,7 +495,7 @@ public class CollectionsController : Controller
|
|||||||
|
|
||||||
private async Task<CollectionResponseModel> Get_vNext(Guid collectionId)
|
private async Task<CollectionResponseModel> Get_vNext(Guid collectionId)
|
||||||
{
|
{
|
||||||
var collection = await _collectionRepository.GetByIdAsync(collectionId, _currentContext.UserId.Value);
|
var collection = await _collectionRepository.GetByIdAsync(collectionId);
|
||||||
var authorized = (await _authorizationService.AuthorizeAsync(User, collection, CollectionOperations.Read)).Succeeded;
|
var authorized = (await _authorizationService.AuthorizeAsync(User, collection, CollectionOperations.Read)).Succeeded;
|
||||||
if (!authorized)
|
if (!authorized)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user