flask-allows icon indicating copy to clipboard operation
flask-allows copied to clipboard

Minor typo in docs

Open justinttl opened this issue 5 years ago • 1 comments

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')

justinttl avatar Feb 27 '20 20:02 justinttl

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')

justinttl avatar Feb 27 '20 21:02 justinttl