Skip to content

Commit

Permalink
Make the roles list into a list of dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed May 4, 2024
1 parent 97e1927 commit c29c492
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def update_auth_model(self, auth_model):
auth_model = await super().update_auth_model(auth_model)
user_info = auth_model["auth_state"][self.user_auth_state_key]
user_roles = self._get_user_roles(user_info)
auth_model["roles"] = user_roles
auth_model["roles"] = [{"name": role_name} for role_name in user_roles]
return auth_model

async def load_managed_roles(self):
Expand Down

0 comments on commit c29c492

Please sign in to comment.