Ignore:
Timestamp:
07/20/20 19:07:40 (4 years ago)
Author:
nanardon
Message:

Flag in log when change are made by SyncManager?

File:
1 edited

Legend:

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

    r2428 r2439  
    7474 
    7575    $self->{_configdir} = $config; 
     76    $self->{_loguser} = $options{loguser}; 
    7677    bless($self, $class); 
    7778 
    78     unless ($options{noacl} || $ENV{LA_USERNAME}) { 
     79    unless ($options{noacl}) { 
    7980        if (-f (my $aclf = join('/', $self->_configdir, 'la-acls.ini'))) { 
    8081            $self->{_acls} = LATMOS::Accounts::Acls->new($aclf) or do { 
     
    147148    }; 
    148149    $base; 
     150} 
     151 
     152=head2 LogUser 
     153 
     154Return the username to use when no user is connected 
     155 
     156=cut 
     157 
     158sub LogUser { 
     159    my ( $self, $Login ) = @_; 
     160 
     161    my $name = $self->{_loguser} || '@Console'; 
     162 
     163    if ($Login) { 
     164        $self->{_loguser} = $Login; 
     165    } 
     166 
     167    return $name; 
    149168} 
    150169 
Note: See TracChangeset for help on using the changeset viewer.