From 23bbb412209061d84e95e1239f219828fe77b1fc Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 7 Oct 2013 16:33:04 +0200 Subject: [PATCH] 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 --- root/etc/e-smith/events/actions/ajaxplorer-user-rights | 2 ++ 1 file changed, 2 insertions(+) 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)