Changeset 470 for trunk/DNSDB.pm
- Timestamp:
- 03/12/13 16:19:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r469 r470 4158 4158 # Returns true if $id1 is a parent of $id2, false otherwise 4159 4159 sub isParent { 4160 my $dbh = shift; 4160 my $self = shift; 4161 my $dbh = $self->{dbh}; 4161 4162 my $id1 = shift; 4162 4163 my $type1 = shift; … … 4202 4203 return 1 if $type1 eq 'revzone' && $id1 == $rdns; 4203 4204 # if request is group, check *both* parents. Only check if the parent is nonzero though. 4204 return 1 if $dom && isParent($dbh,$id1, $type1, $dom, 'domain');4205 return 1 if $rdns && isParent($dbh,$id1, $type1, $rdns, 'revzone');4205 return 1 if $dom && $self->isParent($id1, $type1, $dom, 'domain'); 4206 return 1 if $rdns && $self->isParent($id1, $type1, $rdns, 'revzone'); 4206 4207 # exit here since we've executed the loop below by proxy in the above recursive calls. 4207 4208 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.