Ignore:
Timestamp:
08/28/25 14:59:54 (9 days ago)
Author:
Kris Deugau
Message:

/branches/secondaryzones

Clean up some stray copypasta and correct a permission check to the right
entity type. See #86.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/secondaryzones/dns.cgi

    r931 r933  
    609609} elsif ($webvar{page} eq 'secondaryzones') {
    610610
    611 #  $page->param(domlist => 1);
    612 
    613611# hmm.  seeing problems in some possibly-not-so-corner cases.
    614612# this currently only handles "domain on", "domain off"
     
    617615    my $flag = 0;
    618616    foreach (@viewablegroups) {
    619       $flag = 1 if $dnsdb->isParent($_, 'group', $webvar{id}, 'secondary');
     617      $flag = 1 if $dnsdb->isParent($_, 'group', $webvar{id}, 'secondaryzone');
    620618    }
    621619    if ($flag && ($permissions{admin} || $permissions{domain_edit})) {
Note: See TracChangeset for help on using the changeset viewer.