mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
Determine self hosted from global settings (#1744)
This commit is contained in:
parent
9177ad1ca8
commit
d7e92dae5b
@ -16,8 +16,14 @@
|
||||
<td class="content-block last" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0; -webkit-text-size-adjust: none; text-align: center;" valign="top" align="center">
|
||||
If you do not wish to join this organization, you can safely ignore this email.
|
||||
{{#if OrganizationCanSponsor}}
|
||||
<br />
|
||||
<b style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;">Did you know?</b> Members of {{OrganizationName}} receive a complimentary Families subscription. Learn more at the following link: https://bitwarden.com/help/article/families-for-enterprise/
|
||||
<p style="margin-top:10px">
|
||||
<b
|
||||
style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;">
|
||||
Did you know?
|
||||
</b>
|
||||
Members of {{OrganizationName}} receive a complimentary Families subscription. Learn more at the
|
||||
following link: https://bitwarden.com/help/article/families-for-enterprise/
|
||||
</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -1278,10 +1278,10 @@ namespace Bit.Core.Services
|
||||
}
|
||||
|
||||
|
||||
private static bool CheckOrganizationCanSponsor(Organization organization)
|
||||
private bool CheckOrganizationCanSponsor(Organization organization)
|
||||
{
|
||||
return StaticStore.GetPlan(organization.PlanType).Product == ProductType.Enterprise
|
||||
&& !organization.SelfHost;
|
||||
&& !_globalSettings.SelfHosted;
|
||||
}
|
||||
|
||||
public async Task<OrganizationUser> AcceptUserAsync(Guid organizationUserId, User user, string token,
|
||||
|
Loading…
Reference in New Issue
Block a user