mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
pass org id to can use events check
This commit is contained in:
parent
e9116f8c44
commit
67ec4603a4
@ -64,7 +64,8 @@ namespace Bit.Core.Services
|
||||
{
|
||||
var orgs = await _organizationUserRepository.GetManyByUserAsync(userId);
|
||||
orgEvents = orgs
|
||||
.Where(o => o.Status == OrganizationUserStatusType.Confirmed && CanUseEvents(orgAbilities, o.Id))
|
||||
.Where(o => o.Status == OrganizationUserStatusType.Confirmed &&
|
||||
CanUseEvents(orgAbilities, o.OrganizationId))
|
||||
.Select(o => new EventMessage(_currentContext)
|
||||
{
|
||||
OrganizationId = o.OrganizationId,
|
||||
|
Loading…
Reference in New Issue
Block a user