diff --git a/backend/windmill-api/src/jobs.rs b/backend/windmill-api/src/jobs.rs index 3ecae81c7e..69d5007f2f 100644 --- a/backend/windmill-api/src/jobs.rs +++ b/backend/windmill-api/src/jobs.rs @@ -2569,8 +2569,9 @@ async fn get_job( ) .await?; // Not for an approval link or a public share, which reach the run without the - // read access the token's identity belongs behind. - if opt_authed.is_some() { + // read access the token's identity belongs behind. A share's view token also admits + // a signed-in member the check above would otherwise refuse. + if opt_authed.is_some() && view_token.is_none() { job.fetch_token_origin(&db).await?; } }