Skip to content

Commit

Permalink
Issue alexferl#73: group_required not working as expected
Browse files Browse the repository at this point in the history
- fixes alexferl#73
  • Loading branch information
jm66 committed May 12, 2020
1 parent 7dcddf2 commit 61732d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_simpleldap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def wrapped(*args, **kwargs):
next=request.full_path or request.path))
match = [group for group in groups if group in g.ldap_groups]
if not match:
abort(401)
abort(403)

return func(*args, **kwargs)

Expand Down

0 comments on commit 61732d1

Please sign in to comment.