Skip to content

Commit 61732d1

Browse files
committed
Issue #73: group_required not working as expected
- fixes #73
1 parent 7dcddf2 commit 61732d1

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)