diff --git a/src/slurmctld/proc_req.c b/src/slurmctld/proc_req.c index 080e8789ca1079236e1e80499b47b028511267e9..9e1aef52a633be0abcd05e47f4a2a19ac465809c 100644 --- a/src/slurmctld/proc_req.c +++ b/src/slurmctld/proc_req.c @@ -1812,7 +1812,7 @@ static bool _is_valid_will_run_user(job_desc_msg_t *job_desc_msg, uid_t uid) if ((uid == job_desc_msg->user_id) || validate_operator(uid)) return true; - if (job_desc_msg->job_id == NO_VAL) { + if (job_desc_msg->job_id != NO_VAL) { struct job_record *job_ptr; job_ptr = find_job_record(job_desc_msg->job_id); if (job_ptr)