mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 17:12:49 -05:00
Defect/SG-825 - users in org w/ no personal vault still see personal vault (disabled org policies now still apply) (#2429)
* SG-825 - Policy_ReadByUserId stored proc now pulls back policies of disabled orgs * SG-825 - SyncController - Always retrieve policies -- even if orgs are disabled. * SG-825 - EF - PolicyReadByUserId - autoformat to remove whitespace and pass eslint build error
This commit is contained in:
@ -20,8 +20,7 @@ public class PolicyReadByUserIdQuery : IQuery<Policy>
|
||||
join o in dbContext.Organizations
|
||||
on ou.OrganizationId equals o.Id
|
||||
where ou.UserId == _userId &&
|
||||
ou.Status == OrganizationUserStatusType.Confirmed &&
|
||||
o.Enabled == true
|
||||
ou.Status == OrganizationUserStatusType.Confirmed
|
||||
select p;
|
||||
|
||||
return query;
|
||||
|
Reference in New Issue
Block a user