I came across and programming issue in my MVC app where I need to provide field-level security for some of my forms. So I need to display or hide fields on the form, based on the user's permissions. Additionally, I need to validate on post to see if the user can edit a field or add a new record.
The only solution I could come up with, was creating a HTML helper for the form and some code to walk over the fields posted to see if the user has permissions, but it doesn't seem right. How would you handle something like this? Maybe I am asking the wrong question, but there doesn't seem to be any real examples out there to look at.
How might you go about solving something like this?