...
A preview for the current user only works if that : (a) user has the right to accept the job (OR IS or or is a manager, (b) or the user is already assigned to the job.
A preview for any other company/person requires job details editing rights. Hence calling method with cid/pid should be done only if you know that the current user has management level access to jobs.