Grant access to the dashboard for every user

This commit is contained in:
Daniel Berteaud 2014-02-04 17:52:48 +01:00
parent 074dfa87cc
commit 74bd399b4e
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ foreach my $user (($a->users),$a->get('admin')){
if ($homedir eq 'enabled' || ($homedir eq 'users' && (($user->prop('PydioHomeDir') || 'disabled') eq 'enabled'))){
$data->{"\0*\0acls"}->{'home'} = 'r';
}
# ACL for special workspaces
$data->{"\0*\0acls"}->{'ajxp_user'} = 'rw';
# 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)
delete $data->{"\0*\0parameters"} if (ref ($data->{"\0*\0parameters"})=~ m/ARRAY/i);