We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423183d commit c2d74f3Copy full SHA for c2d74f3
social_core/backends/cas.py
@@ -64,5 +64,8 @@ def get_user_details(self, response):
64
def auth_allowed(self, response, details):
65
allow_groups = set(self.setting("ALLOW_GROUPS", set()))
66
groups = set(response.get("groups", set()))
67
- return super().auth_allowed(response, details) if groups.intersection(allow_groups) or \
68
- not allow_groups else False
+ return (
+ super().auth_allowed(response, details)
69
+ if groups.intersection(allow_groups) or not allow_groups
70
+ else False
71
+ )
0 commit comments