Merge pull request #3471 from coencoppens/issue-2122

Issue 2122
This commit is contained in:
Mark 2014-05-13 22:56:12 +02:00
commit 2d46be6de5

View file

@ -104,7 +104,7 @@ class AclBehavior extends ModelBehavior {
$types = array($types);
}
foreach ($types as $type) {
$parent = $model->parentNode();
$parent = $model->parentNode($type);
if (!empty($parent)) {
$parent = $this->node($model, $parent, $type);
}