From e1e0a55697ed75aaaf4855156aa4507c340bf3c2 Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Mon, 11 Mar 2024 17:48:51 +1300 Subject: [PATCH] security: groupfinder callback is redundant 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. --- src/sambal/security.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sambal/security.py b/src/sambal/security.py index 29fff4c..3beab82 100644 --- a/src/sambal/security.py +++ b/src/sambal/security.py @@ -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 []