Skip to content

Commit

Permalink
Merge pull request 'feature/license-feature-docspace_dev' (#111) from…
Browse files Browse the repository at this point in the history
… feature/license-feature-docspace_dev into hotfix/v3.0.1
  • Loading branch information
pavelbannov committed Dec 4, 2024
2 parents 150502a + 0c2695c commit 58ef3e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions common/ASC.Core.Common/Billing/License/License.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public class License
[JsonPropertyName("signature")]
public string Signature { get; set; }

/// <summary>Indicates whether the license is a developer license or not</summary>
/// <type>System.Boolean, System</type>
[JsonPropertyName("docspace_dev")]
public bool Developer { get; set; }

public static License Parse(string licenseString)
{
if (string.IsNullOrEmpty(licenseString))
Expand Down
2 changes: 1 addition & 1 deletion common/ASC.Core.Common/Billing/License/LicenseReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private static async Task SaveLicenseAsync(Stream licenseStream, string path)

private DateTime Validate(License license)
{
var invalidLicenseType = _licenseType == LicenseType.Enterprise ? license.Customization : !license.Customization;
var invalidLicenseType = _licenseType == LicenseType.Enterprise ? license.Developer : !license.Developer;

if (string.IsNullOrEmpty(license.CustomerId)
|| string.IsNullOrEmpty(license.Signature)
Expand Down

0 comments on commit 58ef3e7

Please sign in to comment.