Skip to content

Commit

Permalink
Adding more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sumesh-aot committed Nov 19, 2024
1 parent 6a9f421 commit 6d7a414
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions forms-flow-api/src/formsflow_api/resources/formio.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def add_jwt_token_as_header(response):
user_role = user.roles
role_ids = Cache.get("formio_role_ids")
formio_user_resource_id = Cache.get("user_resource_id")
current_app.logger.info(f"role_ids , formio_user_resource_id : {role_ids}, {formio_user_resource_id}")
if not role_ids:
collect_role_ids(current_app)
role_ids = Cache.get("formio_role_ids")
Expand All @@ -146,6 +147,7 @@ def add_jwt_token_as_header(response):
formio_user_resource_id = Cache.get("user_resource_id")

roles = get_role_ids_from_user_groups(role_ids, user_role)
current_app.logger.info(f"roles : {roles}")
if roles is not None:
roles.append(
{
Expand Down

0 comments on commit 6d7a414

Please sign in to comment.