Hide branding in business plan

This commit is contained in:
Philipinho
2025-05-17 11:16:46 -07:00
parent 45e8698ab6
commit e6e22f08a5
3 changed files with 8 additions and 4 deletions
@@ -65,7 +65,9 @@ export class ShareController {
return {
...(await this.shareService.getSharedPage(dto, workspace.id)),
hasLicenseKey: Boolean(workspace.licenseKey),
hasLicenseKey:
Boolean(workspace.licenseKey) ||
(this.environmentService.isCloud() && workspace.plan === 'business'),
};
}
@@ -173,7 +175,9 @@ export class ShareController {
) {
return {
...(await this.shareService.getShareTree(dto.shareId, workspace.id)),
hasLicenseKey: Boolean(workspace.licenseKey),
hasLicenseKey:
Boolean(workspace.licenseKey) ||
(this.environmentService.isCloud() && workspace.plan === 'business'),
};
}
}