mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-27 16:10:11 +08:00
24cd4938a5da26938b67eec52196eba67d34915a
Having multiple RoleNeed objects in a Permission does not require all to be satisfied in order to .can(), but will return True if any are present. This makes the previous roles_required logic more elegant for roles_accepted. roles_required decorator needs to check all permissions individually and return only if all permissions exist
Flask-Security ============== .. image:: https://secure.travis-ci.org/mattupstate/flask-security.png?branch=develop Simple security for Flask applications combining Flask-Login, Flask-Principal, Flask-WTF, passlib, and your choice of datastore. Currently SQLAlchemy via Flask-SQLAlchemy and MongoEngine via Flask-MongoEngine are supported out of the box. You will need to install the necessary Flask extensions that you'll be using. Additionally, you may need to install an encryption library such as py-bcrypt to support bcrypt passwords. Resources --------- - `Documentation` <http://packages.python.org/Flask-Security/>`_ - `Issue Tracker <http://github.com/mattupstate/flask-security/issues>`_ - `Code <http://github.com/mattupstate/flask-security/>`_ - `Development Version <http://github.com/mattupstate/flask-security/zipball/develop#egg=Flask-Security-dev>`_
Languages
Python
95.2%
HTML
4.8%