From 474b074baaeb985c6a6ff22d26ae1877f6b84363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Mon, 16 Jul 2018 13:18:01 +0200 Subject: [PATCH] :ambulance: fix(simpleplugin) Apply ACLs on SetAttribute buttons even with linearRendering=FALSE issue #5853 --- include/simpleplugin/attributes/class_SetAttribute.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/simpleplugin/attributes/class_SetAttribute.inc b/include/simpleplugin/attributes/class_SetAttribute.inc index 515e58896..4f2e5f10d 100644 --- a/include/simpleplugin/attributes/class_SetAttribute.inc +++ b/include/simpleplugin/attributes/class_SetAttribute.inc @@ -226,7 +226,7 @@ class SetAttribute extends Attribute 'htmlid' => $this->getForHtmlId(), 'label' => '{literal}'.$this->getLabel().'{/literal}'.($this->isRequired() ? '{$must}' : ''), 'description' => ($this->isRequired() ? sprintf(_("%s (required)"), $this->getDescription()) : $this->getDescription()), - 'input' => $this->renderOnlyFormInput(), + 'input' => $this->renderAcl($this->renderOnlyFormInput()), ); $this->handleEditingValue(); $this->attribute->renderAttribute($attributes, $readOnly); @@ -234,7 +234,7 @@ class SetAttribute extends Attribute 'htmlid' => 'add'.$this->getHtmlId(), 'label' => '', 'description' => '', - 'input' => $this->renderButtons(), + 'input' => $this->renderAcl($this->renderButtons()), ); } } -- GitLab