我们在使用Fastadmin做开发的时候,有时候会针对其他会员组进行权限管理,但有时候会出现没有管理权限的提示,这个可怎么办?
一般来说,我们有两种解决方案:
1,检查你的链接是否问题,碰到了好几次是url链接填写错误造成的赋权失败。
2,如果你是手动创建的菜单,那么一定要检测一下你的数据库,是否给菜单创建了对应的增删改查的权限了,如果没有,可以按照以下的sql语句创建一个:
INSERT INTO `fa_auth_rule`(`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', 204, 'condetails/ffdetail/del', '删除', 'fa fa-circle-o', '', '', 0, 1584244273, 1584259891, 0, 'normal'); INSERT INTO `fa_auth_rule`(`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', 204, 'condetails/ffdetail/edit', '编辑', 'fa fa-circle-o', '', '', 0, 1584244273, 1584259891, 0, 'normal'); INSERT INTO `fa_auth_rule`(`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', 204, 'condetails/ffdetail/add', '添加', 'fa fa-circle-o', '', '', 0, 1584244273, 1584259891, 0, 'normal'); INSERT INTO `fa_auth_rule`(`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', 204, 'condetails/ffdetail/index', '查看', 'fa fa-circle-o', '', '', 0, 1584244273, 1584259891, 0, 'normal'); INSERT INTO `fa_auth_rule`(`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', 205, 'condetails/examine/del', '删除', 'fa fa-circle-o', '', '', 0, 1584244273, 1584259891, 0, 'normal'); INSERT INTO `fa_auth_rule`(`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', 205, 'condetails/examine/edit', '编辑', 'fa fa-circle-o', '', '', 0, 1584244273, 1584259891, 0, 'normal'); INSERT INTO `fa_auth_rule`(`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', 205, 'condetails/examine/add', '添加', 'fa fa-circle-o', '', '', 0, 1584244273, 1584259891, 0, 'normal'); INSERT INTO `fa_auth_rule`(`type`, `pid`, `name`, `title`, `icon`, `condition`, `remark`, `ismenu`, `createtime`, `updatetime`, `weigh`, `status`) VALUES ('file', 205, 'condetails/examine/index', '查看', 'fa fa-circle-o', '', '', 0, 1584244273, 1584259891, 0, 'normal');
按照这个方法,问题基本可以得到解决!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)