Grant access to the admin user on every share, regardless of the actual permissions. admin anyway already has access on the filesystem, so this just makes sure he'll have the same perms through Ajaxplorer. It's also needed for the indexer feature to work

tags/0.1.9
Daniel Berteaud 11 years ago
parent 8dced78dc7
commit 23bbb41220
  1. 2
      root/etc/e-smith/events/actions/ajaxplorer-user-rights

@ -87,6 +87,8 @@ foreach my $user (($a->users),$a->get('admin')){
foreach (@writeusers){
$data->{"\0*\0acls"}->{$sharename} = 'rw' if ( $_ eq $name );
}
# Special case: admin has access to everything
$data->{"\0*\0acls"}->{$sharename} = 'rw' if ($name eq 'admin');
}
# As we're here, lets update the email address and the display name
# First, delete parameter if it's an array (meaning it's empty)

Loading…
Cancel
Save