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

Fixes #5625 Add a flag to force a tabClass to bypass ACLs

Showing with 10 additions and 0 deletions
+10 -0
......@@ -942,6 +942,9 @@ class simplePlugin
/*! \brief Get the acl permissions for an attribute or the plugin itself */
function aclGetPermissions($attribute = '0', $base = NULL, $skipWrite = FALSE)
{
if (isset($this->parent) && isset($this->parent->ignoreAcls) && $this->parent->ignoreAcls) {
return 'cdmr'.($skipWrite ? '' : 'w');
}
$ui = get_userinfo();
$skipWrite |= $this->readOnly();
if ($base === NULL) {
......
......@@ -49,6 +49,8 @@ class simpleTabs
var $baseclass = "";
public $ignoreAcls = FALSE;
/*!
* \brief Tabs classes constructor
* */
......@@ -512,6 +514,11 @@ class simpleTabs
unset($obj);
}
public function setIgnoreAcls($bool)
{
$this->ignoreAcls = $bool;
}
public function dialogOpened ()
{
return $this->by_object[$this->current]->is_modal_dialog();
......
  • bmortier @bmortier

    mentioned in issue #1788

    By Côme Chilliet on 2017-09-02T15:38:17 (imported from GitLab)

    ·

    mentioned in issue #1788

    By Côme Chilliet on 2017-09-02T15:38:17 (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