directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r553423 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
Date Thu, 05 Jul 2007 08:57:00 GMT
Author: ersiner
Date: Thu Jul  5 01:56:59 2007
New Revision: 553423

URL: http://svn.apache.org/viewvc?view=rev&rev=553423
Log:
Fixed the way to determine whether an attribute has only one value.

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java?view=diff&rev=553423&r1=553422&r2=553423
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
Thu Jul  5 01:56:59 2007
@@ -579,7 +579,7 @@
                     if (  entryAttr != null )
                     {
                         // If there is only one value remaining in the attribute ...
-                        if ( entryAttr.get( 1 ) == null )
+                        if ( entryAttr.size() == 1 )
                         {
                             // ... we also need to check if removing the attribute at all
is permitted
                             engine.checkPermission( proxy, userGroups, principalDn, principal.getAuthenticationLevel(),
name,



Mime
View raw message