Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于用户权限的实现 #14

Open
hzyddhuang opened this issue Feb 7, 2021 · 1 comment
Open

关于用户权限的实现 #14

hzyddhuang opened this issue Feb 7, 2021 · 1 comment

Comments

@hzyddhuang
Copy link

您好!用户权限RbacPermission类的2点建议:
1、判断权限前几步都是读取数据库,增加了系统负担,最好是全redis操作
2、没有录入后台管控的权限,都是全pass的,容易造成漏洞

@TianPangJi
Copy link
Owner

您好!用户权限RbacPermission类的2点建议:
1,确定权限前几步都是读取数据库,增加了系统负担,最好是全redis操作
2,没有录入后台管控的权限,都是全pass的,容易造成漏洞

感谢提出建议,后续权限验证后采用redis+django信号来处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants