mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fix permissions check for dleting zones, that was breaking access to zones in views https://sourceforge.net/p/webadmin/bugs/4853/
This commit is contained in:
@@ -13,7 +13,7 @@ require './bind8-lib.pl';
|
||||
|
||||
my $zone = &get_zone_name_or_error($in{'zone'}, $in{'view'});
|
||||
my ($zconf, $conf, $parent) = &zone_to_config($zone);
|
||||
&can_edit_zone($zconf) ||
|
||||
&can_edit_zone($zone) ||
|
||||
&error($text{'master_edelete'});
|
||||
|
||||
$access{'ro'} && &error($text{'master_ero'});
|
||||
|
||||
@@ -38,7 +38,7 @@ foreach my $d (split(/\0/, $in{'d'})) {
|
||||
else {
|
||||
$zconf = $conf->[$zone->{'index'}];
|
||||
}
|
||||
&can_edit_zone($zconf, $view) ||
|
||||
&can_edit_zone($zone) ||
|
||||
&error($text{'master_edelete'});
|
||||
push(@zones, [ $zconf, $view ]);
|
||||
push(@znames, $zconf->{'value'});
|
||||
|
||||
Reference in New Issue
Block a user