Changeset 1801 for trunk/LATMOS-Accounts


Ignore:
Timestamp:
06/28/16 16:17:08 (8 years ago)
Author:
nanardon
Message:

Don't use ACL for task module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Unexportexpired.pm

    r1746 r1801  
    3232sub init { 
    3333    my ($self) = @_; 
    34     my $LA = LATMOS::Accounts->new($self->{config}); 
     34    my $LA = LATMOS::Accounts->new($self->{config}, noacl => 1); 
    3535    my $labase = $self->{base} ? $LA->base($self->{base}) : $LA->base; 
    3636    $labase && $labase->load or die "Cannot load base"; 
     
    5353            $self->{_base}->search_objects($otype, 'exported=t', "expire<$nowtext")) { 
    5454            my $obj = $self->{_base}->get_object($otype, $name); 
    55             la_log(LA_NOTICE, "Unexport %s/%s object due to expire (%s)", $otype, $name, $obj->get_attributes('expire') ||''); 
     55            la_log(LA_NOTICE, "Unexport %s/%s object due to expire (%s)", $otype, $name, $obj->_get_attributes('expire') ||''); 
    5656            $obj->_set_c_fields(unexported => 1); 
    5757            $self->{_base}->commit; 
Note: See TracChangeset for help on using the changeset viewer.