jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r790068 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java
Date Wed, 01 Jul 2009 08:39:08 GMT
Author: angela
Date: Wed Jul  1 08:39:07 2009
New Revision: 790068

URL: http://svn.apache.org/viewvc?rev=790068&view=rev
Log:
 JCR-1588: JSR 283: Access Control     (minor improvement)

UserMangagerImpl: don't search for authorizable if an ItemBasedPrincipal has not representation
in the content
(direct access using the path). Code didn't match the comment.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java?rev=790068&r1=790067&r2=790068&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java
Wed Jul  1 08:39:07 2009
@@ -121,9 +121,8 @@
                     n = (NodeImpl) authItem;
                 }
             }
-        }
-        // another Principal -> search
-        if (n == null) {
+        } else {
+            // another Principal -> search
             String name = principal.getName();
             n = (NodeImpl) authResolver.findNode(P_PRINCIPAL_NAME, name, NT_REP_AUTHORIZABLE);
         }



Mime
View raw message