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

/branches/stable

Backport scope check fix on default record delete from r244.
Unfortunately this is a fragment of a much larger change so
it was copied by hand.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/dns.cgi

    r419 r430  
    671671        unless ($permissions{admin} || $permissions{record_delete});
    672672
    673   if (!check_scope(id => $webvar{id}, type => ($webvar{defrec} eq 'y' ? 'group' : 'domain'))) {
     673  if (!check_scope(id => $webvar{id}, type =>
     674        ($webvar{defrec} eq 'y' ? ($webvar{revrec} eq 'y' ? 'defrevrec' : 'defrec') : 'record'))) {
    674675    changepage(page => 'domlist', errmsg => "You do not have permission to delete records in the requested ".
    675676        ($webvar{defrec} eq 'y' ? 'group' : 'domain'));
Note: See TracChangeset for help on using the changeset viewer.