Adding creation fix for ACL join records, fixes #4478

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7016 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2008-05-22 19:16:54 +00:00
parent f2ea3c8bb0
commit bccfd41291

View file

@ -392,7 +392,7 @@ class DbAcl extends AclBase {
if ($perms['link'] != null && count($perms['link']) > 0) { if ($perms['link'] != null && count($perms['link']) > 0) {
$save['id'] = $perms['link'][0][$this->Aro->Permission->alias]['id']; $save['id'] = $perms['link'][0][$this->Aro->Permission->alias]['id'];
} else { } else {
$save['id'] = null; unset($save['id']);
} }
return ($this->Aro->Permission->save($save) !== false); return ($this->Aro->Permission->save($save) !== false);
} }