From 8c277b56123239459dcc5f046a2fbea78b0e18d0 Mon Sep 17 00:00:00 2001 From: Ceeram Date: Mon, 28 Feb 2011 21:16:17 +0100 Subject: [PATCH] ensure both node() and afterSave() use ->name --- cake/libs/model/behaviors/acl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/behaviors/acl.php b/cake/libs/model/behaviors/acl.php index 63b85a6f0..41cc50899 100644 --- a/cake/libs/model/behaviors/acl.php +++ b/cake/libs/model/behaviors/acl.php @@ -96,7 +96,7 @@ class AclBehavior extends ModelBehavior { } $data = array( 'parent_id' => isset($parent[0][$type]['id']) ? $parent[0][$type]['id'] : null, - 'model' => $model->alias, + 'model' => $model->name, 'foreign_key' => $model->id ); if (!$created) {