summaryrefslogtreecommitdiffstats
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2017-05-12 09:47:51 +0200
committerAleksander Machniak <machniak@kolabsys.com>2017-05-12 09:47:51 +0200
commitafffd6476d66a885f4401612236dc59dda459df7 (patch)
tree866e9b38116edd3f2c44aa4f17c92056af772904 /lib/kolab_client_task.php
parentbb6cf34bd5afdc52d8cb2412315ec318a2dae918 (diff)
downloadwebadmin-afffd6476d66a885f4401612236dc59dda459df7.tar.gz
Fix hiding Add Shared Folder and Add Organizational Unit menu when user has no access to it
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php2
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;
}