> okay, more like this then ?
>
> // Checking roles
> Enumeration roles = securityHelper.getRoles(object);
> while (roles.hasMoreElements()) {
> if (!securityHelper.hasRole(token, (String)roles.nextElement())) {
> // Allow only the namespace admin to create roles he doesn't have
> Uri rootUri = namespace.getUri(token, "/");
> ObjectNode rootObject =
> rootUri.getStore().retrieveObject(rootUri);
> securityHelper.checkCredentials
> (token, rootObject,
> namespaceConfig.getGrantPermissionAction());
> break;
> }
> }
>
> that solves the LinkNode problem anyway, but I haven't checked much
> else yet...
I didn't test, but I think the rest should be ok too.
Remy