解决ACL中非default模块控制器的权限控制bug
This commit is contained in:
parent
fcf59044dc
commit
1dec02dc78
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue