From d9cd7551fee8c8cd80ca83ad664467e90bd943de Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Tue, 10 Nov 2020 09:53:44 -0600 Subject: [PATCH] [Exemption] Updated policy messages (#984) * Updated messages // added exemption message // added callout * updated strings - futureproofing --- bitwarden_license/src/Portal/Views/Policies/Edit.cshtml | 7 +++++++ src/Core/Resources/SharedResources.en.resx | 7 +++++-- src/Core/Services/Implementations/PolicyService.cs | 3 ++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/bitwarden_license/src/Portal/Views/Policies/Edit.cshtml b/bitwarden_license/src/Portal/Views/Policies/Edit.cshtml index 607dfab8d3..ac1c1488ba 100644 --- a/bitwarden_license/src/Portal/Views/Policies/Edit.cshtml +++ b/bitwarden_license/src/Portal/Views/Policies/Edit.cshtml @@ -42,6 +42,13 @@ @i18nService.T("RequireSsoPolicyReq") + }
diff --git a/src/Core/Resources/SharedResources.en.resx b/src/Core/Resources/SharedResources.en.resx index 2f0fbc9428..72c400e741 100644 --- a/src/Core/Resources/SharedResources.en.resx +++ b/src/Core/Resources/SharedResources.en.resx @@ -149,7 +149,7 @@ Edit Policy - {0} - Organization members who do not have two-step login enabled for their personal account will be removed from the organization and will receive an email notifying them about the change. + Organization members who are not Owners or Administrators and do not have two-step login enabled for their personal account will be removed from the organization and will receive an email notifying them about the change. Save @@ -546,7 +546,7 @@ Restrict users from being able to join any other organizations. - Organization members who are already a part of another organization will be removed from this organization and will receive an email notifying them about the change. + Organization members who are not Owners or Administrators and are already a part of another organization will be removed from this organization and will receive an email notifying them about the change. Single Sign-On Authentication @@ -563,4 +563,7 @@ Single Organization policy not enabled. + + Organization Owners and Administrators are exempt from this policy's enforcement. + diff --git a/src/Core/Services/Implementations/PolicyService.cs b/src/Core/Services/Implementations/PolicyService.cs index bd9ee6c395..e04db9c098 100644 --- a/src/Core/Services/Implementations/PolicyService.cs +++ b/src/Core/Services/Implementations/PolicyService.cs @@ -78,7 +78,8 @@ namespace Bit.Core.Services policy.OrganizationId); var removableOrgUsers = orgUsers.Where(ou => ou.Status != Enums.OrganizationUserStatusType.Invited && - ou.Type != Enums.OrganizationUserType.Owner && ou.UserId != savingUserId); + ou.Type != Enums.OrganizationUserType.Owner && ou.Type != Enums.OrganizationUserType.Admin && + ou.UserId != savingUserId); switch (currentPolicy.Type) { case Enums.PolicyType.TwoFactorAuthentication: