X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=security%2Fruntime%2Forg.argeo.security.jackrabbit%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fjackrabbit%2FArgeoSecurityManager.java;h=5612b638868cd462cc310f8b25dd7812ea196427;hb=b7dd623a65cbb78d8c5277dff1aab7d6186b952d;hp=e5b83e3169d2afa3df0f675190d16fe69123d345;hpb=03db65bd74ce09b696a4c5af15a58df988e5368d;p=lgpl%2Fargeo-commons.git diff --git a/security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoSecurityManager.java b/security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoSecurityManager.java index e5b83e316..5612b6388 100644 --- a/security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoSecurityManager.java +++ b/security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoSecurityManager.java @@ -112,18 +112,22 @@ public class ArgeoSecurityManager extends DefaultSecurityManager { public boolean grants(Set principals, String workspaceName) throws RepositoryException { + // everybody has access to all workspaces + // TODO: implements finer access to workspaces + return true; + // anonymous has access to the default workspace (required for // remoting which does a default login when initializing the // repository) - Boolean anonymous = false; - for (Principal principal : principals) - if (principal instanceof AnonymousPrincipal) - anonymous = true; - - if (anonymous && workspaceName.equals(defaultWorkspace)) - return true; - else - return wam.grants(principals, workspaceName); + // Boolean anonymous = false; + // for (Principal principal : principals) + // if (principal instanceof AnonymousPrincipal) + // anonymous = true; + // + // if (anonymous && workspaceName.equals(defaultWorkspace)) + // return true; + // else + // return wam.grants(principals, workspaceName); } }