开发者

cakePHP: question about ACL

I code $this->Auth->allowedActions = array('index') I use plugin poll, rating in action index . When I enter action index, Auth dont allow because action of plugin poll,rating dont permit.

How to allow actio开发者_StackOverflow社区n of plugins poll,rating,...to public in controller (I dont want allow in controller of plugin ).


You can set it in AppController:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜