mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
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:
parent
f2ea3c8bb0
commit
bccfd41291
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ class DbAcl extends AclBase {
|
|||
if ($perms['link'] != null && count($perms['link']) > 0) {
|
||||
$save['id'] = $perms['link'][0][$this->Aro->Permission->alias]['id'];
|
||||
} else {
|
||||
$save['id'] = null;
|
||||
unset($save['id']);
|
||||
}
|
||||
return ($this->Aro->Permission->save($save) !== false);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue