You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/01/26 02:21:51 UTC
svn commit: r500080 -
/directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
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 )