diff --git a/root/etc/e-smith/events/actions/ajaxplorer-user-rights b/root/etc/e-smith/events/actions/ajaxplorer-user-rights index a65e575..c937278 100644 --- a/root/etc/e-smith/events/actions/ajaxplorer-user-rights +++ b/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)