From 18b30e11b471a33df257e0af3de74f28cd5e4925 Mon Sep 17 00:00:00 2001 From: phishy Date: Mon, 3 Mar 2008 18:34:15 +0000 Subject: [PATCH] fixed bug in quoting of acl schema identifiers git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6505 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/datasources/dbo/dbo_oracle.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cake/libs/model/datasources/dbo/dbo_oracle.php b/cake/libs/model/datasources/dbo/dbo_oracle.php index c1ab7271b..a46b676a1 100644 --- a/cake/libs/model/datasources/dbo/dbo_oracle.php +++ b/cake/libs/model/datasources/dbo/dbo_oracle.php @@ -553,11 +553,12 @@ class DboOracle extends DboSource { */ function name($var) { switch($var) { - case '_create': - case '_read': - case '_update': - case '_delete': - return "\"$var\""; + case 'Permission._create': + case 'Permission._read': + case 'Permission._update': + case 'Permission._delete': + list($model, $field) = explode('.', $var); + return "$model.\"$field\""; break; default: return $var;