mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 09:32:48 -05:00
[AC-1748] Set resource as null when reading OrganizationUserUserDetailsResponseModel list
This commit is contained in:
@ -91,7 +91,7 @@ public class OrganizationUsersController : Controller
|
|||||||
public async Task<ListResponseModel<OrganizationUserUserDetailsResponseModel>> Get(Guid orgId, bool includeGroups = false, bool includeCollections = false)
|
public async Task<ListResponseModel<OrganizationUserUserDetailsResponseModel>> Get(Guid orgId, bool includeGroups = false, bool includeCollections = false)
|
||||||
{
|
{
|
||||||
var authorized = FlexibleCollectionsIsEnabled ?
|
var authorized = FlexibleCollectionsIsEnabled ?
|
||||||
(await _authorizationService.AuthorizeAsync(User, orgId, OrganizationUserOperations.Read(orgId))).Succeeded :
|
(await _authorizationService.AuthorizeAsync(User, null, OrganizationUserOperations.Read(orgId))).Succeeded :
|
||||||
await _currentContext.ViewAllCollections(orgId) ||
|
await _currentContext.ViewAllCollections(orgId) ||
|
||||||
await _currentContext.ViewAssignedCollections(orgId) ||
|
await _currentContext.ViewAssignedCollections(orgId) ||
|
||||||
await _currentContext.ManageGroups(orgId) ||
|
await _currentContext.ManageGroups(orgId) ||
|
||||||
|
Reference in New Issue
Block a user