解决ACL中非default模块控制器的权限控制bug

This commit is contained in:
Li Jianxuan 2011-11-18 03:34:33 +00:00
parent fcf59044dc
commit 1dec02dc78
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@
if ($request->module<>"default") $resource=$request->module; if ($request->module<>"default") $resource=$request->module;
// the ACL privilege is the requested action name // the ACL privilege is the requested action name
$privilege = $request->action; $privilege = $request->action;
if ($request->module<>"default") $privilege = $request->controller;
// if we haven't explicitly added the resource, check // if we haven't explicitly added the resource, check
// the default global permissions // the default global permissions
if (!$this->acl->has($resource)) if (!$this->acl->has($resource))