Fix ACL for rw users

tags/0.1.3
Daniel Berteaud 13 years ago
parent 97a9fe267b
commit 4956e402b7
  1. 2
      root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All

@ -27,7 +27,7 @@ foreach my $share (@s){
foreach (@readusers){ foreach (@readusers){
$data->{$sharename} = 'r' if ( $_ eq $id ); $data->{$sharename} = 'r' if ( $_ eq $id );
} }
foreach (@writegroups){ foreach (@writeusers){
$data->{$sharename} = 'rw' if ( $_ eq $id ); $data->{$sharename} = 'rw' if ( $_ eq $id );
} }
$data->{'ajxp.admin'} = ($id eq 'admin') ? 1:0; $data->{'ajxp.admin'} = ($id eq 'admin') ? 1:0;

Loading…
Cancel
Save