incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1198774 - /sling/trunk/bundles/jcr/jackrabbit-accessmanager/src/main/java/org/apache/sling/jcr/jackrabbit/accessmanager/PrivilegesInfo.java
Date Mon, 07 Nov 2011 15:16:55 GMT
Author: fmeschbe
Date: Mon Nov  7 15:16:54 2011
New Revision: 1198774

URL: http://svn.apache.org/viewvc?rev=1198774&view=rev
Log:
SLING-2080 Apply patch by Angela Schreiber (thank you very much)

Modified:
    sling/trunk/bundles/jcr/jackrabbit-accessmanager/src/main/java/org/apache/sling/jcr/jackrabbit/accessmanager/PrivilegesInfo.java

Modified: sling/trunk/bundles/jcr/jackrabbit-accessmanager/src/main/java/org/apache/sling/jcr/jackrabbit/accessmanager/PrivilegesInfo.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/jackrabbit-accessmanager/src/main/java/org/apache/sling/jcr/jackrabbit/accessmanager/PrivilegesInfo.java?rev=1198774&r1=1198773&r2=1198774&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/jackrabbit-accessmanager/src/main/java/org/apache/sling/jcr/jackrabbit/accessmanager/PrivilegesInfo.java
(original)
+++ sling/trunk/bundles/jcr/jackrabbit-accessmanager/src/main/java/org/apache/sling/jcr/jackrabbit/accessmanager/PrivilegesInfo.java
Mon Nov  7 15:16:54 2011
@@ -158,16 +158,16 @@ public class PrivilegesInfo {
 		if (entries != null) {
 			for (AccessControlEntry ace : entries) {
 				Principal principal = ace.getPrincipal();
-				AccessRights accessPrivleges = accessMap.get(principal);
-				if (accessPrivleges == null) {
-					accessPrivleges = new AccessRights();
-					accessMap.put(principal, accessPrivleges);
+				AccessRights accessPrivileges = accessMap.get(principal);
+				if (accessPrivileges == null) {
+					accessPrivileges = new AccessRights();
+					accessMap.put(principal, accessPrivileges);
 				}
 				boolean allow = AccessControlUtil.isAllow(ace);
 				if (allow) {
-					accessPrivleges.getGranted().addAll(Arrays.asList(ace.getPrivileges()));
+					accessPrivileges.getGranted().addAll(Arrays.asList(ace.getPrivileges()));
 				} else {
-					accessPrivleges.getDenied().addAll(Arrays.asList(ace.getPrivileges()));
+					accessPrivileges.getDenied().addAll(Arrays.asList(ace.getPrivileges()));
 				}
 			}
 		}



Mime
View raw message