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:
Jamie Cameron
2016-12-06 15:18:24 -08:00
parent 96c6793301
commit 3bee204db2
2 changed files with 2 additions and 2 deletions

View File

@@ -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'});

View File

@@ -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'});