mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 23:42:59 +00:00
Fix bad tester/code
This commit is contained in:
@@ -703,7 +703,7 @@ class PAMAuthenticator(LocalAuthenticator):
|
||||
# (returning None instead of just the username) as this indicates some sort of system failure
|
||||
|
||||
admin_group_gids = {self._getgrnam(x).gr_gid for x in self.admin_groups}
|
||||
user_group_gids = {x.gr_gid for x in self._getgrouplist(username, self._getpwnam(username).pw_gid)}
|
||||
user_group_gids = set(self._getgrouplist(username, self._getpwnam(username).pw_gid))
|
||||
admin_status = len(admin_group_gids & user_group_gids) != 0
|
||||
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user