Skip to content

Commit c318daa

Browse files
committed
Convert values to boolean for retryAllowed and resumeAllowed for graphql process user_permissions
1 parent 46f01ff commit c318daa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchestrator/graphql/schemas/process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ async def user_permissions(self, info: OrchestratorInfo) -> FormUserPermissionsT
8989
auth_resume, auth_retry = get_auth_callbacks(get_steps_to_evaluate_for_rbac(process), workflow) # type: ignore[arg-type]
9090

9191
return FormUserPermissionsType(
92-
retryAllowed=auth_retry and auth_retry(oidc_user), # type: ignore[arg-type]
93-
resumeAllowed=auth_resume and auth_resume(oidc_user), # type: ignore[arg-type]
92+
retryAllowed=bool(auth_retry and auth_retry(oidc_user)), # type: ignore[arg-type]
93+
resumeAllowed=bool(auth_resume and auth_resume(oidc_user)), # type: ignore[arg-type]
9494
)
9595

9696
@authenticated_field(description="Returns list of subscriptions of the process") # type: ignore

0 commit comments

Comments
 (0)