aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/ecml_functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/ecml/ecml_functions.php')
-rw-r--r--mod/ecml/ecml_functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/ecml/ecml_functions.php b/mod/ecml/ecml_functions.php
index 58395aa7b..7a30cde16 100644
--- a/mod/ecml/ecml_functions.php
+++ b/mod/ecml/ecml_functions.php
@@ -203,6 +203,12 @@ function ecml_is_valid_keyword($keyword, $view = NULL) {
return FALSE;
}
+ // this keyword is restricted to certain views
+ if (isset($CONFIG->ecml_keywords[$keyword]['restricted'])
+ && !in_array($view, $CONFIG->ecml_keywords[$keyword]['restricted'])) {
+ return FALSE;
+ }
+
$views = $CONFIG->ecml_permissions;
// this is a blacklist, so return TRUE by default.