Changeset 735 for trunk/dns.cgi


Ignore:
Timestamp:
06/23/16 17:11:40 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Refine record search scope/permission so that users without the
location_view permission don't see that column in the record search
results. See #57.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r733 r735  
    19031903
    19041904  # some magic to label and linkify the column headers for sorting
    1905   my @cols = ('domain','revzone','host','type','val','location');
     1905  my @cols = ('domain','revzone','host','type','val');
    19061906  my %colheads = (domain => "Domain (Group)", revzone => "Reverse zone (Group)", host => "Host",
    1907         type => "Type", val => "IP/value", location => "Location");
     1907        type => "Type", val => "IP/value");
     1908  # only users allowed to see location/view data get this column
     1909  if ($permissions{admin} || $permissions{location_view}) {
     1910    $colheads{location} = "Location";
     1911    push @cols, 'location';
     1912  }
    19081913  fill_colheads($sortby, $sortorder, \@cols, \%colheads);
    19091914
Note: See TracChangeset for help on using the changeset viewer.