Skip to content

Commit

Permalink
Merge pull request pallets-eco#1430 from timrichardson/master
Browse files Browse the repository at this point in the history
fix documentation for flask-login authentication
  • Loading branch information
mrjoes authored Feb 1, 2017
2 parents 7ea3f12 + 5a9cf71 commit 8d2904a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ could be as simple as::
class MicroBlogModelView(sqla.ModelView):

def is_accessible(self):
return login.current_user.is_authenticated()
return login.current_user.is_authenticated

def inaccessible_callback(self, name, **kwargs):
# redirect to login page if user doesn't have access
Expand Down

0 comments on commit 8d2904a

Please sign in to comment.