我们在使用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');

按照这个方法,问题基本可以得到解决!

发表回复

您的电子邮箱地址不会被公开。