Changeset 431


Ignore:
Timestamp:
10/23/12 17:49:11 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Have new groups inherit default records from their parent, rather than
defaulting to the internal hardcoded records. This still won't be exposed
in the UI until #8 is tackled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r428 r431  
    878878      }
    879879    }
    880     # not gonna provide the 4th param: template-or-clone flag, just yet
    881     my ($code,$msg) = addGroup($dbh, $webvar{newgroup}, $webvar{pargroup}, \%newperms);
     880    # force inheritance of parent group's default records with inherit flag,
     881    # otherwise we end up with the hardcoded defaults from DNSDB.pm.  See
     882    # https://secure.deepnet.cx/trac/dnsadmin/ticket/8 for the UI enhancement
     883    # that will make this variable.
     884    my ($code,$msg) = addGroup($dbh, $webvar{newgroup}, $webvar{pargroup}, \%newperms, 1);
    882885    if ($code eq 'OK') {
    883886      if ($alterperms) {
Note: See TracChangeset for help on using the changeset viewer.