Changeset 478


Ignore:
Timestamp:
10/04/09 04:37:41 (15 years ago)
Author:
nanardon
Message:
  • '*' attribute in acl do not include CREATE and DELETE action
File:
1 edited

Legend:

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

    r474 r478  
    3333enclose into bracket, either a '*' to match any attribute. 
    3434 
    35 Special keyword 'CREATE' and 'DELETE' can be used to allow or deny object 
     35Special keyword C<CREATE> and C<DELETE> can be used to allow or deny object 
    3636creation and deletion. In this case USER in form C<$...> and read permission 
    37 have no effect (see below). 
     37have no effect (see below). C<*> do not include C<CREATE> and C<DELETE> action. 
    3838 
    3939=item USER can be 
     
    191191        return 
    192192    } 
    193     grep { $_ eq '*' || $_ eq $attr } @{$self->{attr}} or return; 
     193    grep { ($_ !~ /^(CREATE|DELETE)$/ && $_ eq '*') || $_ eq $attr } @{$self->{attr}} or return; 
    194194 
    195195    foreach my $u (@{ $self->{users} }) { 
Note: See TracChangeset for help on using the changeset viewer.