Skip to content
Snippets Groups Projects
Commit 7325569e authored by Tom N Harris's avatar Tom N Harris
Browse files

Allow multiple deletes in ACL plugin

darcs-hash:20090116001320-6942e-6384740cf9818d9083a767cd581a252d242a9d8c.gz
parent ed3655c4
No related branches found
No related tags found
No related merge requests found
...@@ -109,9 +109,10 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin { ...@@ -109,9 +109,10 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
$this->_acl_del($scope, $this->who); $this->_acl_del($scope, $this->who);
}elseif(isset($_REQUEST['cmd']['update'])){ }elseif(isset($_REQUEST['cmd']['update'])){
// handle update of the whole file // 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 // remove all rules marked for deletion
unset($_REQUEST['acl'][$where][$who]); foreach($names as $who)
unset($_REQUEST['acl'][$where][$who]);
} }
// prepare lines // prepare lines
$lines = array(); $lines = array();
...@@ -554,7 +555,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin { ...@@ -554,7 +555,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
echo '</td>'; echo '</td>';
echo '<td align="center">'; 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 '</td>';
echo '</tr>'; echo '</tr>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment