RBAC support for Flask
Project description
Flask-RBAC
Adds RBAC support to Flask
Installation
$ pip install flask-rbac
Links
- Document
补充:
这是在Flask-RBAC的作者的基础上做了点扩展,因为不满足需求,需要根据个人的permission来判断权限而不是角色 如果想要根据个人的permission来判断: rbac.set_user_permission(True) 同时User需要实现 get_permissions(self) 这个成员函数,返回permission list permission存的是request.endpoint
Contributes
You can send a pull request on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-PRBAC-0.1.3.tar.gz
(10.3 kB
view hashes)