]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-1946: TEMPORARILY commenting out the block, in SecurityInterceptor, that check...
authorAron Roberts <aron@socrates.berkeley.edu>
Mon, 31 May 2010 17:48:36 +0000 (17:48 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Mon, 31 May 2010 17:48:36 +0000 (17:48 +0000)
services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java

index 0a40c3f5c56ec8c42502bd20a6908d0279ff2a74..194c6c1db8fdf7c6ec9f57749c36314bf6181b5c 100644 (file)
@@ -74,6 +74,9 @@ public class SecurityInterceptor implements PreProcessInterceptor {
 //        if (uriPath.startsWith("dimensions")) {
         AuthZ authZ = AuthZ.get();
         CSpaceResource res = new URIResourceImpl(resName, httpMethod);
+/*
+  TEMPORARILY commented out by Aron per Sanjay's suggestion in CSPACE-1946.
+  NOTE: This effectively DISABLES authorization checks at the services layer.
         if (!authZ.isAccessAllowed(res)) {
             logger.error("Access to " + res.getId() + " is NOT allowed to "
                     + " user=" + AuthN.get().getUserId());
@@ -81,6 +84,7 @@ public class SecurityInterceptor implements PreProcessInterceptor {
                     Response.Status.FORBIDDEN).entity(uriPath + " " + httpMethod).type("text/plain").build();
             throw new WebApplicationException(response);
         }
+*/
         if (logger.isDebugEnabled()) {
             logger.debug("Access to " + res.getId() + " is allowed to "
                     + " user=" + AuthN.get().getUserId());