Skip to content

Commit 9c6cb35

Browse files
authored
Merge pull request #75 from jm66/issue-73
Issue #73: group_required not working as expected
2 parents c6f63c7 + 61732d1 commit 9c6cb35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_simpleldap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def wrapped(*args, **kwargs):
330330
next=request.full_path or request.path))
331331
match = [group for group in groups if group in g.ldap_groups]
332332
if not match:
333-
abort(401)
333+
abort(403)
334334

335335
return func(*args, **kwargs)
336336

0 commit comments

Comments
 (0)