aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/actions
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-26 11:55:03 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-26 11:55:03 +0000
commit68803264c6476fd96311bc83937f04164348cce4 (patch)
tree3e88f86684643cd2e05fcf1b0cc6add400bf1831 /mod/ecml/actions
parent49d3c5b5f577b1120f75b11e90849f597747f71b (diff)
downloadelgg-68803264c6476fd96311bc83937f04164348cce4.tar.gz
elgg-68803264c6476fd96311bc83937f04164348cce4.tar.bz2
moving ecml to plugins repository as it won't be a part of 1.8.0. It will be back though...
git-svn-id: http://code.elgg.org/elgg/trunk@7938 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/actions')
-rw-r--r--mod/ecml/actions/save_permissions.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/mod/ecml/actions/save_permissions.php b/mod/ecml/actions/save_permissions.php
deleted file mode 100644
index f32544d86..000000000
--- a/mod/ecml/actions/save_permissions.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/**
- * Saves granular access
- *
- * @package ECML
- */
-
-$whitelist = get_input('whitelist', array());
-$keywords = $CONFIG->ecml_keywords;
-$views = $CONFIG->ecml_parse_views;
-
-// the front end uses a white list but the backend uses a
-// blacklist for performance and extensibility.
-// gotta convert.
-$perms = array();
-
-foreach ($views as $view => $view_info) {
- foreach ($keywords as $keyword => $keyword_info) {
-
- // don't need to add perms for restricted keywords
- // because those perms are checked separately
- if (isset($keyword_info['restricted'])) {
- continue;
- }
- if (!isset($whitelist[$view]) || !in_array($keyword, $whitelist[$view])) {
- $perms[$view][] = $keyword;
- }
- }
-}
-
-if (set_plugin_setting('ecml_permissions', serialize($perms), 'ecml')) {
- system_message(elgg_echo('ecml:admin:permissions_saved'));
-} else {
- register_error(elgg_echo('ecml:admin:cannot_save_permissions'));
-}
-
-forward(REFERER);