mirror of
https://github.com/bitwarden/server
synced 2026-01-01 08:03:23 +00:00
[AC-1139] Created new CollectionOperationRequirement ReadAllWithAccess
This commit is contained in:
@@ -521,7 +521,7 @@ public class CollectionsController : Controller
|
||||
.GetManyByUserIdWithAccessAsync(_currentContext.UserId.Value, orgId);
|
||||
|
||||
var readAllAuthorized =
|
||||
(await _authorizationService.AuthorizeAsync(User, CollectionOperations.ReadAll(orgId))).Succeeded;
|
||||
(await _authorizationService.AuthorizeAsync(User, CollectionOperations.ReadAllWithAccess(orgId))).Succeeded;
|
||||
if (readAllAuthorized)
|
||||
{
|
||||
// The user can view all collections, but they may not always be assigned to all of them
|
||||
|
||||
Reference in New Issue
Block a user