2010-09-06 133 views
0

我的代码$this->Auth->allowedActions = array('index') 我使用插件轮询,评级在行动指数。 当我输入动作索引时,Auth不允许,因为插件轮询的行为,评级不允许。cakePHP:关于ACL的问题

如何允许插件民意调查,评级,... 公共在控制器(我不想让控制器的插件允许)的行动。

回答

0

可以在AppController中设置:

function beforeFilter(){ 
    if($this->plugin == 'poll'){ 
     $this->Auth->allowedActions = array('*'); 
    } 
}