[Bedework-commit] bedework r2997 - trunk/deployment/resources/javascript/bedework

svnadmin at bedework.org svnadmin at bedework.org
Thu Sep 2 13:44:29 EDT 2010


Author: douglm
Date: 2010-09-02 13:44:29 -0400 (Thu, 02 Sep 2010)
New Revision: 2997

Modified:
   trunk/deployment/resources/javascript/bedework/bedeworkAccess.js
Log:
When emitting acls for update must not include inherited ACEs.

Modified: trunk/deployment/resources/javascript/bedework/bedeworkAccess.js
===================================================================
--- trunk/deployment/resources/javascript/bedework/bedeworkAccess.js	2010-09-02 17:44:27 UTC (rev 2996)
+++ trunk/deployment/resources/javascript/bedework/bedeworkAccess.js	2010-09-02 17:44:29 UTC (rev 2997)
@@ -558,14 +558,18 @@
   }
 
   this.toXml = function() {
+    if (this.inherited != "") {
+      return ""; // Should not emit inherited aces
+    }
+    
     var res = "  <D:ace>\n" + this.principal.toXml();
 
     res += this.howsToXml(true);
     res += this.howsToXml(false);
 
-    if (this.inherited != "") {
-      res += "    <D:inherited><D:href>" + this.inherited + "</D:href></D:inherited>";
-    }
+    //if (this.inherited != "") {
+    //  res += "    <D:inherited><D:href>" + this.inherited + "</D:href></D:inherited>";
+    //}
 
     return res + "  </D:ace>\n";
   }



More information about the Bedework-commit mailing list