summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth/kolab_auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kolab_auth/kolab_auth.php')
-rw-r--r--plugins/kolab_auth/kolab_auth.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php
index 31f50ad..fa70ee9 100644
--- a/plugins/kolab_auth/kolab_auth.php
+++ b/plugins/kolab_auth/kolab_auth.php
@@ -96,13 +96,15 @@ class kolab_auth extends rcube_plugin
// redirect to the first task on the list
if (!empty($_SESSION['kolab_auth_allowed_tasks'])) {
$tasks = (array)$_SESSION['kolab_auth_allowed_tasks'];
- if (!in_array($args['task'], $tasks)) {
+ if (!in_array($args['task'], $tasks) && !in_array('*', $tasks)) {
header('Location: ?_task=' . array_shift($tasks));
die;
}
// add script that will remove disabled taskbar buttons
- $this->add_hook('render_page', array($this, 'render_page'));
+ if (!in_array('*', $tasks)) {
+ $this->add_hook('render_page', array($this, 'render_page'));
+ }
}
}