summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_plugin_api.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-27 16:32:51 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-27 16:32:51 +0100
commit648fcf570964ad512d18d6df7e07d5bcec2ae830 (patch)
tree6cd6f15ebefcb3f265d18f8a82756b1fe103ed2e /program/lib/Roundcube/rcube_plugin_api.php
parent222c7de3e17056657fede666e87133ff1ea15eaf (diff)
Whitelist configuration options (user preferences) that can be changed using save-pref command
Diffstat (limited to 'program/lib/Roundcube/rcube_plugin_api.php')
-rw-r--r--program/lib/Roundcube/rcube_plugin_api.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_plugin_api.php b/program/lib/Roundcube/rcube_plugin_api.php
index 111c177d9..a89f14712 100644
--- a/program/lib/Roundcube/rcube_plugin_api.php
+++ b/program/lib/Roundcube/rcube_plugin_api.php
@@ -36,6 +36,7 @@ class rcube_plugin_api
public $task = '';
public $output;
public $handlers = array();
+ public $allowed_prefs = array();
protected $plugins = array();
protected $tasks = array();
@@ -202,6 +203,11 @@ class rcube_plugin_api
$plugin->init();
$this->plugins[$plugin_name] = $plugin;
}
+
+ if (!empty($plugin->allowed_prefs)) {
+ $this->allowed_prefs = array_merge($this->allowed_prefs, $plugin->allowed_prefs);
+ }
+
return true;
}
}