Commit 8d2904aa authored by Serge S. Koval's avatar Serge S. Koval Committed by GitHub

Merge pull request #1430 from timrichardson/master

fix documentation for flask-login authentication
parents 7ea3f12e 5a9cf718
...@@ -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