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.