diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2017-05-12 09:47:51 +0200 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2017-05-12 09:47:51 +0200 |
commit | afffd6476d66a885f4401612236dc59dda459df7 (patch) | |
tree | 866e9b38116edd3f2c44aa4f17c92056af772904 | |
parent | bb6cf34bd5afdc52d8cb2412315ec318a2dae918 (diff) | |
download | webadmin-afffd6476d66a885f4401612236dc59dda459df7.tar.gz |
Fix hiding Add Shared Folder and Add Organizational Unit menu when user has no access to it
-rw-r--r-- | lib/kolab_client_task.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php index f266388..363ceb0 100644 --- a/lib/kolab_client_task.php +++ b/lib/kolab_client_task.php @@ -543,7 +543,7 @@ class kolab_client_task $caps = (array) $this->get_capability('actions'); foreach ($this->menu as $idx => $label) { - if (in_array($task, array('domain', 'group', 'resource', 'role', 'user'))) { + if (in_array($task, $this->object_types)) { if (!array_key_exists($task . "." . $idx, $caps)) { continue; } |