Skip to content

Commit

Permalink
Added $type as an argument.
Browse files Browse the repository at this point in the history
See #2122
  • Loading branch information
Coen Coppens committed May 12, 2014
1 parent d0b995a commit 91fbbdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Behavior/AclBehavior.php
Expand Up @@ -104,7 +104,7 @@ public function afterSave(Model $model, $created, $options = array()) {
$types = array($types);
}
foreach ($types as $type) {
$parent = $model->parentNode();
$parent = $model->parentNode($type);
if (!empty($parent)) {
$parent = $this->node($model, $parent, $type);
}
Expand Down

0 comments on commit 91fbbdf

Please sign in to comment.