fix for users unable to edit existing personal vault items when org policy set (#1298)

This commit is contained in:
Matt Portune 2021-03-04 16:57:40 -05:00 committed by GitHub
parent 9b621bd1d0
commit 53c82f23bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,7 +298,8 @@ namespace Bit.App.Pages
if (org.Enabled && org.Status == OrganizationUserStatusType.Confirmed) if (org.Enabled && org.Status == OrganizationUserStatusType.Confirmed)
{ {
OwnershipOptions.Add(new KeyValuePair<string, string>(org.Name, org.Id)); OwnershipOptions.Add(new KeyValuePair<string, string>(org.Name, org.Id));
if (policies != null && org.UsePolicies && !org.canManagePolicies && AllowPersonal) if ((!EditMode || CloneMode) && policies != null && org.UsePolicies && !org.canManagePolicies &&
AllowPersonal)
{ {
foreach (var policy in policies) foreach (var policy in policies)
{ {