瀏覽代碼

SEC-421: MutableAcl.setParent(MutableAcl) method to accept Acl parameter, not MutableAcl.

Ben Alex 18 年之前
父節點
當前提交
95735017e6

+ 1 - 1
core/src/main/java/org/acegisecurity/acls/MutableAcl.java

@@ -68,7 +68,7 @@ public interface MutableAcl extends Acl {
      *
      * @param newParent the new parent
      */
-    void setParent(MutableAcl newParent);
+    void setParent(Acl newParent);
 
     void updateAce(Serializable aceId, Permission permission)
         throws NotFoundException;

+ 1 - 1
core/src/main/java/org/acegisecurity/acls/domain/AclImpl.java

@@ -335,7 +335,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl {
         this.owner = newOwner;
     }
 
-    public void setParent(MutableAcl newParent) {
+    public void setParent(Acl newParent) {
         aclAuthorizationStrategy.securityCheck(this, AclAuthorizationStrategy.CHANGE_GENERAL);
         Assert.notNull(newParent, "New Parent required");
         Assert.isTrue(!newParent.equals(this), "Cannot be the parent of yourself");