Changeset 915


Ignore:
Timestamp:
08/13/25 17:37:04 (11 hours ago)
Author:
Kris Deugau
Message:

/branches/secondaryzones

Add secondary zone checks to isParent()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/secondaryzones/DNSDB.pm

    r914 r915  
    56525652
    56535653  # Return false on invalid types
    5654   return 0 if !grep /^$type1$/, ('record','defrec','defrevrec','user','domain','revzone','group');
    5655   return 0 if !grep /^$type2$/, ('record','defrec','defrevrec','user','domain','revzone','group');
     5654  return 0 if !grep /^$type1$/, ('record','defrec','defrevrec','user','domain','revzone','secondaryzone','group');
     5655  return 0 if !grep /^$type2$/, ('record','defrec','defrevrec','user','domain','revzone','secondaryzone','group');
    56565656
    56575657  # Return false on impossible relations
     
    56625662  return 0 if $type1 eq 'domain' && $type2 ne 'record'; # domain may not be a parent of anything other than a record
    56635663  return 0 if $type1 eq 'revzone' && $type2 ne 'record';# reverse zone may not be a parent of anything other than a record
     5664  return 0 if $type1 eq 'secondaryzone';# nothing may be a child of a secondary zone
    56645665
    56655666  # ennnhhhh....  if we're passed an id of 0, it will never be found.  usual
Note: See TracChangeset for help on using the changeset viewer.