When posting an employer action, there's a touch less reliance on Employer Id of a status. 1308 was caused when the employer_id was different from the user trying to archive. In participant-status.js, we see the cause:
That is when no currentStatusId is passed in. By getting the status id first, we not pass it in here properly, but we also check that the accessing user has the right permissions for the participant.
We're keeping it at no status passed in, but there's still less reliance on the hiring user being the same person.
This is a fix for https://freshworks.atlassian.net/browse/HCAP-1308 but serves in two ways:
When posting an employer action, there's a touch less reliance on Employer Id of a status. 1308 was caused when the
employer_id
was different from the user trying to archive. Inparticipant-status.js
, we see the cause:That is when no currentStatusId is passed in. By getting the status id first, we not pass it in here properly, but we also check that the accessing user has the right permissions for the participant.We're keeping it at no status passed in, but there's still less reliance on the hiring user being the same person.