flask-allows
flask-allows copied to clipboard
Minor typo in docs
Awesome job in the library! I love the extensible design of this compared to flask-principal/ flask-login stack.
In https://flask-allows.readthedocs.io/en/latest/requirements.html Danger section, there seems to be a minor typo. Should be app.route
@app.allows('/admin')
@requires(Has)
def admin():
return render_template('admin.html')
Another one:
In home page of docs, class based requirement is not defining the updated fulfill
method
class IsAdmin(Requirement):
def requires(self, user):
return user.permissions.get('admin')