cg_edit - changed the acl query to make it faster