flask-rbac
flask-rbac copied to clipboard
Flask-RBAC
Note, I have app.config['RBAC_USE_WHITE'] = True in my app. This issue probably applies to other packages that initialise the css/js from the app and include it in the html headers...
[PR-29](https://github.com/shonenada/flask-rbac/pull/29) Added the ability to specify endpoints for the @rbac.allow and @rbac.deny to allow them to play nicely with blueprints @rbac.exempt still uses the `view_func.__name__` and hence, doesn't work with...
Referring to the unit test as an example, my expectation is that accessing /e as a **staff_role_user** should work because **staff_role_user** is a child of **everyone**. But from my testing,...
I was trying to use flask_rbac with flask_Login Manager AnonymousUserMixin. my Role Model ` from app import db, rbac from flask_rbac import RoleMixin roles_parents = db.Table( 'roles_parents', db.Column('role_id', db.Integer, db.ForeignKey('role.id')),...
I have a class Role as follows (following your example in the docs): ``` class Role(Base, RoleMixin): id = Column(Integer, primary_key=True) name = Column(String(20)) parents = relationship( 'Role', secondary=roles_parents, primaryjoin=(id...
I added deny rules for test function: @rbac.deny(['admin'], methods=['POST', 'GET']) def verify_test(): ... checked self._denied in __init__.py: [(u'admin', 'POST', ), (u'admin', 'GET', )] Then I send request to verify_test, check...
Is it possible to get a python 3 build pushed onto pypi for the latest version?
Is there a way to check if a user has a certain role or it's parent role in the template?
For exempt decorator, since there's no Role, i.e., None, checking for None.get_children() [ in method allow() of class AccessControlList] would be of no use.
Does flask-rbac currently support the concept of a "group" for access control?