Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
save submitting user account_id and email
Browse files Browse the repository at this point in the history
  • Loading branch information
sc15zs committed May 7, 2024
1 parent d9764ec commit 139a912
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/main/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def upload(fund_code, round):

fund = g.access[fund_code].fund
auth = g.access[fund_code].auth
submitting_account_id = g.account_id
submitting_user_email = g.user.email

if request.method == "GET":
return render_template(
Expand All @@ -71,6 +73,8 @@ def upload(fund_code, round):
"reporting_round": fund.current_reporting_round,
"auth": json.dumps(auth.get_auth_dict()),
"do_load": is_load_enabled(),
"submitting_account_id": submitting_account_id,
"submitting_user_email": submitting_user_email,
},
)

Expand Down
3 changes: 3 additions & 0 deletions config/envs/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@ class DevelopmentConfig(DefaultConfig):
"roles": ["PF_MONITORING_RETURN_SUBMITTER", "TF_MONITORING_RETURN_SUBMITTER"],
"highest_role_map": {},
}

DEBUG_USER_ACCOUNT_ID = "00000000-0000-0000-0000-000000000000"

ENABLE_TF_R5 = True

0 comments on commit 139a912

Please sign in to comment.