php后台权限授权管理系统的思路
2022-10-28 15:19:56
164
{{single.collect_count}}


建立3个表:

auth_rule 权限规则     例如:user/index 还有pid   比如系统管理下面有菜单管理

auth_group权限阻 分为,超级管理员和其他管理员,里面有字段rules装的是rule的id判断有没有这个规则

auth_group_access  权限授权,授权 给用户,是否有这个权限。含:uid->用户的id, group_id权限组的id->超级管理员or普通管理员。





回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}