fix: roles in consent shoudl be role names, not Role objects

This commit is contained in:
Maarten de Waard 2022-04-20 13:53:45 +02:00
parent 75b18bada8
commit 45a0982874
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA

View file

@ -238,7 +238,7 @@ def consent():
.filter(AppRole.user_id == user.uuid)
)
for role_obj in role_objects:
roles.append(role_obj.role)
roles.append(role_obj.role.name)
current_app.logger.info(f"Using '{roles}' when applying consent for {kratos_id}")