fix: Preset-Änderungen ohne unfiltered_html ablehnen, wenn Divi HTML/CSS anderer Presets entfernen würde

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-16 18:09:31 +02:00
co-authored by Claude Opus 5.5
parent 048cd9353d
commit 75714429be
10 changed files with 289 additions and 14 deletions
+15 -3
View File
@@ -11,6 +11,7 @@ use LIT\MCP\Integrations\Divi\Design\DesignSystemReader;
use LIT\MCP\Integrations\Divi\Design\DesignSystemWriter;
use LIT\MCP\Integrations\Divi\Design\DiviDesignSystemAbility;
use LIT\MCP\Integrations\Divi\Design\DesignChange;
use LIT\MCP\Integrations\Divi\Design\DesignRights;
use LIT\MCP\Integrations\Divi\Design\DiviPresetGetAbility;
use LIT\MCP\Integrations\Divi\Design\DiviDesignRestoreAbility;
use LIT\MCP\Integrations\Divi\Design\DiviDesignSnapshotsAbility;
@@ -167,11 +168,22 @@ final class DiviIntegration implements Integration
$this->designChange(),
$this->globalUsages(),
$loader,
$this->presetComposer(...)
$this->presetComposer(...),
DesignRights::unfilteredHtml()
),
new DiviPresetsDeleteAbility(
$this->designWriter,
$this->designChange(),
$this->globalUsages(),
DesignRights::unfilteredHtml()
),
new DiviPresetsDeleteAbility($this->designWriter, $this->designChange(), $this->globalUsages()),
new DiviDesignSnapshotsAbility(new SnapshotStore()),
new DiviDesignRestoreAbility($this->designWriter, $this->designChange(), new SnapshotStore()),
new DiviDesignRestoreAbility(
$this->designWriter,
$this->designChange(),
new SnapshotStore(),
DesignRights::unfilteredHtml()
),
];
}