Skip to content

Commit

Permalink
fix issue 1
Browse files Browse the repository at this point in the history
Closes #1.
  • Loading branch information
Heshmatkhah authored May 12, 2018
1 parent 0c9f9e6 commit ab54ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion global_login_required/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def process_view(self, request, view_func, view_args, view_kwargs):
:param view_kwargs: the keyword arguments that will be passed to view
:return: `None` in order to continue processing **process_view** in middleware chain or ` HttpResponse` for braking middleware chain.
"""
if request.user.is_authenticated() or self.matches_public_path(request.path) or self.matches_public_view(view_func) or self.check_decorator(view_func):
if request.user.is_authenticated or self.matches_public_path(request.path) or self.matches_public_view(view_func) or self.check_decorator(view_func):
return None
else:
return login_required(view_func)(request, *view_args, **view_kwargs)
Expand Down

0 comments on commit ab54ea9

Please sign in to comment.