Commit 5a9cf718 authored by Tim Richardson's avatar Tim Richardson

fix documentation for flask-login authentication

parent 7ea3f12e
...@@ -102,7 +102,7 @@ could be as simple as:: ...@@ -102,7 +102,7 @@ could be as simple as::
class MicroBlogModelView(sqla.ModelView): class MicroBlogModelView(sqla.ModelView):
def is_accessible(self): def is_accessible(self):
return login.current_user.is_authenticated() return login.current_user.is_authenticated
def inaccessible_callback(self, name, **kwargs): def inaccessible_callback(self, name, **kwargs):
# redirect to login page if user doesn't have access # redirect to login page if user doesn't have access
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment