Project

General

Profile

How to limit fields viewable in New Issue based on Group

Added by Paul Layne over 12 years ago

My idea is certain things i dont need people filling in on the new Issue Forum. I want a project manager to make hte necessary adjustments. So in the process of wanting to hide specific fields i made a custom field check box in users called client. if its check i hide said fields via javascript or something along those lines. My question is how do i check the current value of a custom field for the current user?

<% if @user.custom_field_? >
<input type="hidden" name="doHide" id="doHide" value="????" />
<
end%>

Thanks ahead of time
Paul