diff -urpN old/acl.module new/acl.module
--- old/acl.module	2008-03-13 03:18:00.000000000 +0530
+++ new/acl.module	2008-03-14 21:37:10.906250000 +0530
@@ -175,6 +175,23 @@ function acl_node_add_acl($nid, $acl_id,
   db_query("DELETE FROM {acl_node} WHERE acl_id = %d AND nid = %d", $acl_id, $nid);
   db_query("INSERT INTO {acl_node} (acl_id, nid, grant_view, grant_update, grant_delete) VALUES (%d, %d, %d, %d, %d)", $acl_id, $nid, $view, $update, $delete);
 }
+
+
+/**
+ * Gets all the ACL(s) a node has.
+ * 
+ * @return 
+ *  Array with the ACL(s) id and grants
+ */
+function acl_node_return_existing_acl($nid) {
+  $existing_acl = array();
+  $result = db_query("SELECT acl_id, grant_view, grant_update, grant_delete FROM {acl_node} WHERE nid = %d", $nid);
+  while ($data = db_fetch_object($result)) {
+    $existing_acl[] = (array)$data;
+  } 
+  return $existing_acl; 
+}
+
 
 /**
  * Remove an ACL completely from a node.
