diff --git a/apis/s3/src/main/java/org/jclouds/s3/domain/AccessControlList.java b/apis/s3/src/main/java/org/jclouds/s3/domain/AccessControlList.java index 34a7366605..b6d8dab08a 100644 --- a/apis/s3/src/main/java/org/jclouds/s3/domain/AccessControlList.java +++ b/apis/s3/src/main/java/org/jclouds/s3/domain/AccessControlList.java @@ -209,8 +209,9 @@ public boolean hasPermission(URI granteeURI, String permission) { */ protected Collection findGrantsForGrantee(final String granteeId) { return Collections2.filter(grants, new Predicate() { + @Override public boolean apply(Grant g) { - return g.getGrantee().getIdentifier().equals(granteeId); + return granteeId.equals(g.getGrantee().getIdentifier()); } }); }