mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -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)
|
||||
{
|
||||
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;
|
||||
if (!authorized)
|
||||
{
|
||||
|
Reference in New Issue
Block a user