lingthio / Flask-User

Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
http://flask-user.readthedocs.io/
MIT License
1.06k stars 294 forks source link

Update roles_required_app.py #329

Open geauxdojang opened 3 years ago

geauxdojang commented 3 years ago

is that correct?

   # The Special page requires a user with 'secret' and 'sauce' roles or with 'secret' and 'agent' roles.
    @app.route('/special')
    @roles_required('secret', ['sauce', 'agent'])   # Use of @roles_required decorator