Grant access to the dashboard for every user

tags/0.2.4_el5
Daniel Berteaud 11 years ago
parent 074dfa87cc
commit 74bd399b4e
  1. 3
      root/etc/e-smith/events/actions/pydio-user-rights

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

Loading…
Cancel
Save