当前位置:编程学习 > php >>

yii提示访问没有操作权限 403

您没有执行此操作的权限 /yii2-admin/components/AccessControl.php

去配置文件
config/main.php 看看

'as access' => [

 'class' => 'mdm\admin\components\AccessControl', 'allowActions' => [ 

'controller/action',//这里是允许访问的action 

//'*',// 表示允许所有,后期会介绍这个 '*' 

]


Forbidden (#403)
您没有执行此操作的权限。

The above error occurred while the Web server was processing your request. Please contact us if you think this is a server error. Thank you. Meanwhile, you may return to dashboard or try using the search form.

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,