YII中You are not authorized to perform this action的解决方法
来源:互联网 发布:唐山的软件代理商 编辑:程序博客网 时间:2024/05/15 18:15
当访问:TblOrders/listdetial时
YII中出现You are not authorized to perform this action的提示,是因为当前用户没有访问这个控制器下面的actionlistdetial的权限,只要在accessRules下设置一下该action的访问控制就可以了。
代码如下:
public function accessRules(){return array(array('allow', // allow all users to perform 'index' and 'view' actions'actions'=>array('index','view'),'users'=>array('*'),),array('allow', // allow authenticated user to perform 'create' and 'update' actions'actions'=>array('create','update','listdetial'),'users'=>array('@'),),array('allow', // allow admin user to perform 'admin' and 'delete' actions'actions'=>array('admin','delete'),'users'=>array('admin','@'),),array('deny', // deny all users'users'=>array('*'),),);}
0 0
- YII中You are not authorized to perform this action的解决方法
- Yii出现“You are not authorized to perform this action.”的解决方法
- you are not authorized to use this service
- 提交app报错you are not authorized to use this service的解决办法
- Xcode中archive打包的时候,出现you are not allowed to perform this operation.please..问题
- you are not authorized to use service
- HTTP Error 401.2 - You are not authorized to view this page due to invalid authentication headers
- yii-You are not allowed to access this page
- yii-You are not allowed to access this page
- yii-You are not allowed to access this page
- yii gii You are not allowed to access this page.
- This server could not verify that you are authorized to access the document requested.
- Xcode上传ipa时itunes提示you are not authorized to use this service
- 登录tomcat 时出现错误:tomcat You are not authorized to view this page
- Xcode上传ipa时itunes提示you are not authorized to use this service
- Xcode上传ipa时itunes提示you are not authorized to use this service
- Tomcat Manager App--403 Access Denied You are not authorized to view this page
- tomcat进Manager 403 Access Denied You are not authorized to view this page
- 字符串倒序输出
- Android Camera 照相机屏幕旋转问题
- NewSQL初了解
- zoj 3708 Density of Power Network(数学啊)
- 中大-复试-2012-编程题二
- YII中You are not authorized to perform this action的解决方法
- C# 可访问性不一致
- js实现页面跳转的几种方式
- 再用Sqlite3 之学习新解,新感悟
- 【cocos2dx-3.0beta-制作flappybird】我才不会告诉你我硬盘的秘密呢—游戏存储的实现
- ExtJS4.2学习(五)表格渲染与复选框
- Hadoop2 上HDFS HA 搭建过程
- 批量获取域名的IP地址
- ExtJS之实现华丽的皮肤主题更换