feat(expenses): secure timeline and draft events
This commit is contained in:
@@ -23,6 +23,7 @@ def _read_test_user_headers(
|
||||
grade: Annotated[str | None, Header(alias="X-Auth-Grade")] = None,
|
||||
employee_no: Annotated[str | None, Header(alias="X-Auth-Employee-No")] = None,
|
||||
manager_name: Annotated[str | None, Header(alias="X-Auth-Manager-Name")] = None,
|
||||
tenant_id: Annotated[str | None, Header(alias="X-Auth-Tenant-Id")] = None,
|
||||
) -> CurrentUserContext:
|
||||
normalized_username = str(username or "").strip()
|
||||
normalized_name = str(name or normalized_username).strip()
|
||||
@@ -44,6 +45,7 @@ def _read_test_user_headers(
|
||||
name=normalized_name or normalized_username,
|
||||
role_codes=normalized_roles,
|
||||
is_admin=admin_flag,
|
||||
tenant_id=str(tenant_id or "default").strip() or "default",
|
||||
department_name=str(department or "").strip(),
|
||||
cost_center=str(cost_center or "").strip(),
|
||||
position=str(position or "").strip(),
|
||||
|
||||
Reference in New Issue
Block a user