From 5ca89564e82afbf45988ad663c9730f94ed0c54e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 26 Sep 2013 19:27:21 +0200 Subject: [PATCH] Don't fix admin priv in the share loop --- .../var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All index 3dbed91..1937c6c 100644 --- a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All +++ b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All @@ -30,9 +30,10 @@ foreach my $share (@s){ foreach (@writeusers){ $data->{$sharename} = 'rw' if ( $_ eq $id ); } - $data->{'ajxp.admin'} = ($id eq 'admin') ? 1:0; } +$data->{'ajxp.admin'} = ($id eq 'admin') ? 1:0; + $data->{'ajxp_shared'} = 'rw' if (($ajaxplorer{'PublicShares'} || 'enabled') eq 'enabled');