Changeset 915
- Timestamp:
- 08/13/25 17:37:04 (11 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/secondaryzones/DNSDB.pm
r914 r915 5652 5652 5653 5653 # 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'); 5656 5656 5657 5657 # Return false on impossible relations … … 5662 5662 return 0 if $type1 eq 'domain' && $type2 ne 'record'; # domain may not be a parent of anything other than a record 5663 5663 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 5664 5665 5665 5666 # 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.