mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
15 lines
361 B
Perl
Executable File
15 lines
361 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# save_acl.cgi
|
|
# Change visible usermin modules
|
|
|
|
require './usermin-lib.pl';
|
|
$access{'acl'} || &error($text{'acl_ecannot'});
|
|
&ReadParse();
|
|
&lock_file(&usermin_acl_filename());
|
|
@mods = split(/\0/, $in{'mod'});
|
|
&save_usermin_acl("user", \@mods);
|
|
&unlock_file(&usermin_acl_filename());
|
|
&webmin_log("acl", undef, undef, \%in);
|
|
&redirect("");
|
|
|