I've been doing some digging in the Cake logic. I think I came up with a very simple and useful solution for this issue.
Using CakePHP 2.4.1, I've edited the file /lib/Cake/Model/Behavior/AclBehavior.php
On line 109 it reads:
$parent = $model->parentNode();
I've simply added the type as argument:
$parent = $model->parentNode($type);
That way, my parentNode() function can look like this:
public function parentNode($sType) {
if('ARO' == $sType) {
return 'ARO parent';
} else {
return 'ACO parent';
}
}
Me happy :-)