Ignore:
Timestamp:
10/23/09 20:31:01 (15 years ago)
Author:
nanardon
Message:
  • skip acl check when an attribute refer to another
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm

    r501 r519  
    200200    } elsif (grep { $field eq $_ } __PACKAGE__->_address_fields(), 
    201201        $self->_office_address_fields, 'postalAddress') { 
    202         if (my $fmainaddress = $self->get_c_field('mainaddress')) { 
     202        if (my $fmainaddress = $self->_get_c_field('mainaddress')) { 
    203203            my $address = $self->base->get_object('address', $fmainaddress); 
    204204            if ($address) { 
    205                 return $address->get_c_field($field); 
     205                return $address->_get_c_field($field); 
    206206            } else { # can't happend 
    207207                return; 
     
    301301            my %aliases = map { $_ => 1 } (ref $data{$attr} ? @{$data{$attr}} : 
    302302                $data{$attr}); 
    303             foreach ($self->get_attributes('aliases')) { 
     303            foreach ($self->_get_attributes('aliases')) { 
    304304                $aliases{$_} ||= 0; 
    305305                $aliases{$_} +=2; 
Note: See TracChangeset for help on using the changeset viewer.