From 1dec02dc78910d66cc4cd2e2b9a135402520dd13 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Fri, 18 Nov 2011 03:34:33 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3ACL=E4=B8=AD=E9=9D=9Edefault?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=8E=A7=E5=88=B6=E5=99=A8=E7=9A=84=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/CustomControllerAclManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/CustomControllerAclManager.php b/application/models/CustomControllerAclManager.php index 0e4d1e26..b9b35740 100755 --- a/application/models/CustomControllerAclManager.php +++ b/application/models/CustomControllerAclManager.php @@ -89,6 +89,7 @@ if ($request->module<>"default") $resource=$request->module; // the ACL privilege is the requested action name $privilege = $request->action; + if ($request->module<>"default") $privilege = $request->controller; // if we haven't explicitly added the resource, check // the default global permissions if (!$this->acl->has($resource))