[英]How to define permission sets in web application in python flask?
I am making a web applicaion in python with flask framework in which different types of users are there like admin, editior, normal user etc. So the application access is different for each. 我正在使用flask框架在python中制作一个Web应用程序,其中有不同类型的用户,例如admin,editior,普通用户等。因此,每种应用程序的访问都不同。 How to implement this?.
如何实现呢? After login application need to redirect to user related views .
登录后,应用程序需要重定向到用户相关视图。 Please help to make this in a better way
请帮助以更好的方式做到这一点
There is a Flask extension Flask-RBAC which does exactly what you need: 有一个Flask扩展Flask-RBAC可以完全满足您的需求:
Flask-RBAC provides a Role-based Access Control module in Flask applications.
Flask-RBAC在Flask应用程序中提供了基于角色的访问控制模块。 It can help you to control different role of users to access your website.
它可以帮助您控制不同角色的用户访问您的网站。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.