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

This commit is contained in:
Daniel Berteaud 2013-10-07 16:33:04 +02:00
parent 8dced78dc7
commit 23bbb41220
1 changed files with 2 additions and 0 deletions

View File

@ -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)