Don't fix admin priv in the share loop

tags/0.1.8
Daniel Berteaud 11 years ago
parent b027fe7a3e
commit 5ca89564e8
  1. 3
      root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All

@ -30,9 +30,10 @@ foreach my $share (@s){
foreach (@writeusers){ 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;
$data->{'ajxp_shared'} = 'rw' $data->{'ajxp_shared'} = 'rw'
if (($ajaxplorer{'PublicShares'} || 'enabled') eq 'enabled'); if (($ajaxplorer{'PublicShares'} || 'enabled') eq 'enabled');

Loading…
Cancel
Save