From e0955a1695113d0296d163baace20f4fbf49dcf4 Mon Sep 17 00:00:00 2001 From: Rui Tome Date: Fri, 24 Nov 2023 12:11:17 +0000 Subject: [PATCH] [AC-1139] Changed CollectionsController.Get_vNext method to use CollectionRepository.GetByIdAsync without userId --- src/Api/Controllers/CollectionsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Controllers/CollectionsController.cs b/src/Api/Controllers/CollectionsController.cs index 6b474f519c..5cfa8082bc 100644 --- a/src/Api/Controllers/CollectionsController.cs +++ b/src/Api/Controllers/CollectionsController.cs @@ -495,7 +495,7 @@ public class CollectionsController : Controller private async Task 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) {