Skip to content

Commit

Permalink
Do not let us guess the primary group
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Aug 22, 2024
1 parent 5900c2a commit 1f3bfd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egi_notebooks_hub/egiauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@ class EOSCNodeAuthenticator(EGICheckinAuthenticator):

def get_primary_group(self, user_info):
# first group is the personal project, which is different for every user
# if not available call super()
# if not available return None
for g in user_info.get("groups", []):
m = re.match(self.personal_project_re, g)
if m:
if m.groups():
return m.groups()[0]
else:
return g
return super().get_primary_group(user_info)
return None

0 comments on commit 1f3bfd5

Please sign in to comment.