Skip to content

Commit

Permalink
fix: feature flag for xml editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Makar Sichevoi committed Dec 5, 2023
1 parent 6809eb2 commit 3e1db0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/default/XmlEditor.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@

return new XmlEditor([
XmlEditor::OPTION_XML_EDITOR_LOCK => true
]);
]);
6 changes: 4 additions & 2 deletions models/classes/xmlEditor/XmlEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ public function saveStringTest(core_kernel_classes_Resource $test, string $testS
*/
public function isLocked(): bool
{
if ($this->getFeatureFlagChecker()->isEnabled(self::FEATURE_FLAG_XML_EDITOR_ENABLED)
|| $this->getFeatureFlagChecker()->isEnabled(self::LEGACY_FEATURE_FLAG_XML_EDITOR_ENABLED)) {
if (
$this->getFeatureFlagChecker()->isEnabled(self::FEATURE_FLAG_XML_EDITOR_ENABLED)
|| $this->getFeatureFlagChecker()->isEnabled(self::LEGACY_FEATURE_FLAG_XML_EDITOR_ENABLED))
{
return false;
}

Expand Down

0 comments on commit 3e1db0b

Please sign in to comment.