fix: roles in consent shoudl be role names, not Role objects
This commit is contained in:
parent
75b18bada8
commit
45a0982874
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ def consent():
|
||||||
.filter(AppRole.user_id == user.uuid)
|
.filter(AppRole.user_id == user.uuid)
|
||||||
)
|
)
|
||||||
for role_obj in role_objects:
|
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}")
|
current_app.logger.info(f"Using '{roles}' when applying consent for {kratos_id}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue