jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1466865 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/permission/PermissionValidator.java
Date Thu, 11 Apr 2013 12:54:28 GMT
Author: angela
Date: Thu Apr 11 12:54:28 2013
New Revision: 1466865

URL: http://svn.apache.org/r1466865
Log:
OAK-527: permissions (WIP: exclude checking for nodetypemgt privilege as this causes regular
Node#addNode(String) to fail. see fixme.)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/permission/PermissionValidator.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/permission/PermissionValidator.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/permission/PermissionValidator.java?rev=1466865&r1=1466864&r2=1466865&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/permission/PermissionValidator.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/permission/PermissionValidator.java
Thu Apr 11 12:54:28 2013
@@ -223,7 +223,8 @@ class PermissionValidator extends Defaul
         long perm;
         if (JcrConstants.JCR_PRIMARYTYPE.equals(name) || JcrConstants.JCR_MIXINTYPES.equals(name))
{
             // FIXME: distinguish between autocreated and user-supplied modification (?)
-            perm = Permissions.NODE_TYPE_MANAGEMENT;
+            // perm = Permissions.NODE_TYPE_MANAGEMENT;
+            perm = defaultPermission;
         } else if (isLockProperty(name)) {
             perm = Permissions.LOCK_MANAGEMENT;
         } else if (VersionConstants.VERSION_PROPERTY_NAMES.contains(name)) {



Mime
View raw message