diff --git a/app/plan-watermark.php b/app/plan-watermark.php
index f710ef6..ae1119e 100644
--- a/app/plan-watermark.php
+++ b/app/plan-watermark.php
@@ -44,7 +44,10 @@ function plan_watermark_plan_code(PDO $pdo, int $tenantId): string
}
/**
- * Zeigt dieser Mandant das Wasserzeichen? Nur der kostenlose Tarif tut das.
+ * Zeigt dieser Mandant das Wasserzeichen? Im kostenlosen Tarif immer - es ist
+ * der Gegenwert fuer die kostenlose Nutzung und deshalb nicht abschaltbar.
+ * Alle anderen entscheiden ueber die Mandant-Einstellung
+ * `watermark_enabled` (Standard: an).
*/
function plan_watermark_visible(PDO $pdo, int $tenantId): bool
{
@@ -52,7 +55,18 @@ function plan_watermark_visible(PDO $pdo, int $tenantId): bool
return false;
}
- return plan_watermark_plan_code($pdo, $tenantId) === 'free';
+ $planCode = plan_watermark_plan_code($pdo, $tenantId);
+ if ($planCode === 'free') {
+ return true;
+ }
+
+ if ($planCode === 'unknown') {
+ return false;
+ }
+
+ require_once __DIR__ . '/features.php';
+
+ return app_tenant_switch_enabled($pdo, $tenantId, 'watermark_enabled');
}
/**
@@ -84,10 +98,10 @@ function plan_watermark_html(): string
. '' . htmlspecialchars($label, ENT_QUOTES, 'UTF-8') . '';
if ($url === '') {
- return '
' . $inner . '
';
+ return '' . $inner . '
';
}
return '