开发者

cakePHP: question about ACL

开发者 https://www.devze.com 2023-01-15 05:17 出处:网络
I code $this->Auth->allowedActions = array(\'index\') I use plugin poll, rating inaction index .

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

精彩评论

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