diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-15 17:07:13 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-15 17:07:13 +0000 |
commit | 18d00e176826a353503f889bb8ea157e5228304b (patch) | |
tree | 2627deb9fbf4f67d542100445953bed181e6fa00 /mod/ecml/actions/save_permissions.php | |
parent | 08b4a8007503f580ebe85527124b452de5832dd3 (diff) | |
download | elgg-18d00e176826a353503f889bb8ea157e5228304b.tar.gz elgg-18d00e176826a353503f889bb8ea157e5228304b.tar.bz2 |
Added granular access for views in ECML.
Added 'usage' on keyword info.
Updated docs.
git-svn-id: http://code.elgg.org/elgg/trunk@5747 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/actions/save_permissions.php')
-rw-r--r-- | mod/ecml/actions/save_permissions.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mod/ecml/actions/save_permissions.php b/mod/ecml/actions/save_permissions.php new file mode 100644 index 000000000..490a8928b --- /dev/null +++ b/mod/ecml/actions/save_permissions.php @@ -0,0 +1,20 @@ +<?php +/** + * Saves granular access + * + * @package ECML + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider Ltd + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.org/ + */ + +$perms = get_input('perms', array()); + +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($_SERVER['HTTP_REFERER']); |