Adjust watermark permissions and transparency
This commit is contained in:
@@ -116,6 +116,15 @@ export function isWatermarkAllowed(event?: TenantEvent | null): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function isWatermarkRemovalAllowed(event?: TenantEvent | null): boolean {
|
||||
if (!event) return false;
|
||||
const settings = (event.settings ?? {}) as Record<string, unknown>;
|
||||
if (typeof settings.watermark_removal_allowed === 'boolean') {
|
||||
return settings.watermark_removal_allowed;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function formatEventStatusLabel(
|
||||
status: TenantEvent['status'] | null,
|
||||
t: (key: string, options?: Record<string, unknown>) => string,
|
||||
|
||||
Reference in New Issue
Block a user