Update role templates (they are not used but stil...)

tags/0.1.8
Daniel Berteaud 11 years ago
parent 5ca89564e8
commit 65a287bdb4
  1. 9
      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);
}

Loading…
Cancel
Save