Hi,
in a js file we have a function that hides attachments and some fields from users in fields "Job Interviewer 2" and so on.
The problem is, that if that user is in this field BUT also in group "Managers" in the same time, he/she should see this fields.
Could you help us, how to do it?
Our code for hiding:
function removeInterviewer2Fields() {
if (getCurrentUserName() == getJobInterviewer2CSD() || getCurrentUserName() == getJobInterviewer2PBS()) {
hideFields();
if (getCurrentStatus() == 'Contract offeredContract offered' || getCurrentStatus() == 'Contract acceptedContract accepted' || getCurrentStatus() == 'Contract signedContract signed')
{
hideAttachments();
}
}
}
Thank you in advance
Urszula