From 7325569e7654d3cdace8a310359b1ab5be65af1f Mon Sep 17 00:00:00 2001 From: Tom N Harris <tnharris@whoopdedo.org> Date: Fri, 16 Jan 2009 01:13:20 +0100 Subject: [PATCH] Allow multiple deletes in ACL plugin darcs-hash:20090116001320-6942e-6384740cf9818d9083a767cd581a252d242a9d8c.gz --- lib/plugins/acl/admin.php | 7 ++++--- 1 file 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>'; } -- GitLab