Commit 474b074b authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(simpleplugin) Apply ACLs on SetAttribute buttons even with linearRendering=FALSE

issue #5853
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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()),
);
}
}
......
  • bmortier @bmortier

    mentioned in commit 67e6f6fd

    By Côme Chilliet on 2018-07-16T13:44:32 (imported from GitLab)

    ·

    mentioned in commit 67e6f6fd

    By Côme Chilliet on 2018-07-16T13:44:32 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in merge request !337

    By Côme Chilliet on 2018-07-16T13:44:54 (imported from GitLab)

    ·

    mentioned in merge request !337

    By Côme Chilliet on 2018-07-16T13:44:54 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment