From 65a287bdb456de804f0610578de3f7a79d4995e2 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 26 Sep 2013 19:52:44 +0200 Subject: [PATCH] Update role templates (they are not used but stil...) --- .../var/lib/ajaxplorer/plugins/auth.serial/roles.ser/10All | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/roles.ser/10All b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/roles.ser/10All index 0c5acce..ffe8d69 100644 --- a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/roles.ser/10All +++ b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/roles.ser/10All @@ -18,15 +18,14 @@ foreach my $group ($a->groups){ my @read = split(/[;,]/, $share->prop('ReadGroups') || ''); my @write = split(/[;,]/, $share->prop('WriteGroups') || ''); - $data->{$groupname}->{"\00AjxpRole\00rights"}{$sharename} = 'rw' if ( grep { $groupname eq $_ } @write ); - $data->{$groupname}->{"\00AjxpRole\00rights"}{$sharename} = 'r' if ( grep { $groupname eq $_ } @read ); - $data->{$groupname}->{"\00AjxpRole\00id"} = $groupname; + $data->{$groupname}->{"\0*\0acls"}->{$sharename} = 'rw' if ( grep { $groupname eq $_ } @write ); + $data->{$groupname}->{"\0*\0acls"}->{$sharename} = 'r' if ( grep { $groupname eq $_ } @read ); + $data->{$groupname}->{"\0*\0roleId"} = $groupname; - $data->{$groupname} = bless $data->{$groupname},'PHP::Serialization::Object::AjxpRole'; + $data->{$groupname} = bless $data->{$groupname},'PHP::Serialization::Object::AJXP_Role'; } } $OUT = serialize($data); } -