Skip to content

Commit

Permalink
Fix auto-creation of private role for new users
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jun 12, 2024
1 parent 0258be8 commit cc931e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/galaxy/model/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,9 @@ def create_private_user_role(self, user):
return self.get_private_user_role(user)

def get_private_user_role(self, user, auto_create=False):
if auto_create and user.id is None:
# New user, directly create private role
return self.create_private_user_role(user)
stmt = (
select(Role)
.where(
Expand Down

0 comments on commit cc931e1

Please sign in to comment.