Skip to content

Commit

Permalink
security: groupfinder callback is redundant
Browse files Browse the repository at this point in the history
With Pyramid 2 style security policies, this is already handled in the security policy.

The groupfinder callback used to be passed to the AuthorizationPolicy, but since the Authentication and AuthorizationPolicy have been moved to a singular class this callback isn't used.
  • Loading branch information
robvdl committed Mar 11, 2024
1 parent f512c14 commit e1e0a55
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/sambal/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,3 @@ def logout(request):
del request.session["samba.realm"]

return forget(request)


def groupfinder(username, request):
"""Callback that returns a list of group names for the current user."""
return []

0 comments on commit e1e0a55

Please sign in to comment.