summaryrefslogtreecommitdiff
path: root/lib/plugins
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2009-01-16 01:13:20 +0100
committerTom N Harris <tnharris@whoopdedo.org>2009-01-16 01:13:20 +0100
commit7325569e7654d3cdace8a310359b1ab5be65af1f (patch)
tree2d4bb70a901990f37d8c30cd6f76085d6cbb7e06 /lib/plugins
parented3655c4c7f9692340f7b54054d35f24a0cc3f68 (diff)
downloadrpg-7325569e7654d3cdace8a310359b1ab5be65af1f.tar.gz
rpg-7325569e7654d3cdace8a310359b1ab5be65af1f.tar.bz2
Allow multiple deletes in ACL plugin
darcs-hash:20090116001320-6942e-6384740cf9818d9083a767cd581a252d242a9d8c.gz
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/acl/admin.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/plugins/acl/admin.php b/lib/plugins/acl/admin.php
index 4d072f4e3..5014c282c 100644
--- a/lib/plugins/acl/admin.php
+++ b/lib/plugins/acl/admin.php
@@ -109,9 +109,10 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
$this->_acl_del($scope, $this->who);
}elseif(isset($_REQUEST['cmd']['update'])){
// handle update of the whole file
- foreach((array) $_REQUEST['del'] as $where => $who){
+ foreach((array) $_REQUEST['del'] as $where => $names){
// remove all rules marked for deletion
- unset($_REQUEST['acl'][$where][$who]);
+ foreach($names as $who)
+ unset($_REQUEST['acl'][$where][$who]);
}
// prepare lines
$lines = array();
@@ -554,7 +555,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
echo '</td>';
echo '<td align="center">';
- echo '<input type="checkbox" name="del['.hsc($where).']" value="'.hsc($who).'" />';
+ echo '<input type="checkbox" name="del['.hsc($where).'][]" value="'.hsc($who).'" />';
echo '</td>';
echo '</tr>';
}