diff --git a/web/login/login.py b/web/login/login.py index 30df69b..8f8f7e0 100644 --- a/web/login/login.py +++ b/web/login/login.py @@ -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}")