directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r500080 - /directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Date Fri, 26 Jan 2007 01:21:51 GMT
Author: elecharny
Date: Thu Jan 25 17:21:50 2007
New Revision: 500080

URL: http://svn.apache.org/viewvc?view=rev&rev=500080
Log:
Somehow reverted some of my previous changes. Only NO_USER_MODIFICATION attributes are now
checked : if the user tries to change them, an exception is raised. Still related to DIRSERVER-835

Modified:
    directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java

Modified: directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java?view=diff&rev=500080&r1=500079&r2=500080
==============================================================================
--- directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
(original)
+++ directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Thu Jan 25 17:21:50 2007
@@ -1277,10 +1277,10 @@
             // user modifiable.
             AttributeType attributeType = atRegistry.lookup( change.getID() );
             
-            if ( ( attributeType.getUsage() == UsageEnum.DIRECTORYOPERATION ) &&
-                 ( !attributeType.isCanUserModify() ) )
+            if //( ( attributeType.getUsage() == UsageEnum.DIRECTORYOPERATION ) &&
+                 ( !attributeType.isCanUserModify() ) //)
             {
-                throw new NoPermissionException( "Cannot modify the operational attribute
'" + change.getID() + "'" );
+                throw new NoPermissionException( "Cannot modify the attribute '" + change.getID()
+ "'" );
             }
 
             switch ( modOp )



Mime
View raw message