# Get the host's ACL options
&remote_foreign_require($serv->{'host'}, "acl", "acl-lib.pl");
-$aref = &remote_eval($serv->{'host'}, "acl", "\%rv = &get_module_acl('$who', '$mod->{'dir'}'); \\%rv");
+if ($user) {
+ $aref = &remote_eval($serv->{'host'}, "acl",
+ "\%rv = &get_module_acl('$who', '$mod->{'dir'}'); \\%rv");
+ }
+else {
+ $aref = &remote_eval($serv->{'host'}, "acl",
+ "\%rv = &get_group_module_acl('$who', '$mod->{'dir'}'); \\%rv");
+ }
%access = %$aref;
# Display the editor form from this host
}
# Save the .acl file
- local $cd = &remote_eval($s->{'host'}, "acl", '$config_directory');
+ local $cd = &remote_eval($s->{'host'}, "acl",
+ '$config_directory');
+ $sfx = $in{'_acl_user'} ? "acl" : "gacl";
&remote_foreign_call($s->{'host'}, "acl", "write_file",
- "$cd/$in{'_acl_mod'}/$who.acl", \%maccess);
+ "$cd/$in{'_acl_mod'}/$who.$sfx", \%maccess);
# Recursively update the ACL for all member users and groups
if ($in{'_acl_group'}) {