Changeset 2317


Ignore:
Timestamp:
12/04/19 09:27:46 (4 years ago)
Author:
nanardon
Message:

Dump also default ACL

File:
1 edited

Legend:

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

    r2313 r2317  
    175175    $attr =~ /^@(CREATE|DELETE)$/ && $perm eq 'r' and return; 
    176176 
    177     foreach my $acl (@{$self->{_acls}}) { 
     177    foreach my $acl (@{$self->{_acls}}, @{$self->{_default_acls}}) { 
    178178        my $res = $acl->match($obj, $attr, $perm, $who, $groups); 
    179179        defined($res) and return $res; 
    180180    } 
    181     foreach my $acl (@{$self->{_default_acls}}) { 
    182         my $res = $acl->match($obj, $attr, $perm, $who, $groups); 
    183         defined($res) and return $res; 
    184     } 
    185181 
    186182    return 0; 
     
    195191sub dump { 
    196192    my ($self) = @_; 
    197     foreach my $acl (@{$self->{_acls}}) { 
     193    foreach my $acl (@{$self->{_acls}}, @{$self->{_default_acls}}) { 
    198194        print $acl->dump, "\n"; 
    199195    } 
Note: See TracChangeset for help on using the changeset viewer.