Changeset 2136


Ignore:
Timestamp:
04/26/18 07:56:38 (6 years ago)
Author:
nanardon
Message:

Fix: take care to unexported addresses

File:
1 edited

Legend:

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

    r2116 r2136  
    10551055                        where "user" = ? 
    10561056                        order by address_attributes.attr 
    1057                         }); 
     1057                        } . ($self->base->{wexported} ? '' : ' and "address".exported = true')); 
    10581058                    $sth->execute($self->object->id); 
    10591059                    my @values; 
     
    10721072                        select name from address join address_attributes on ikey = okey 
    10731073                        where "user" = ? and attr = 'isMainAddress' 
    1074                         }); 
     1074                        } . ($self->base->{wexported} ? '' : ' and "address".exported = true')); 
    10751075                    $sth->execute($self->object->id); 
    10761076                    my $res = $sth->fetchrow_hashref; 
Note: See TracChangeset for help on using the changeset viewer.