You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2007/07/05 10:57:00 UTC
svn commit: r553423 -
/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
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,