As said by Adi, '#access' in your form will give access to a form field based on a user role. Check this [link][1] [1]: https://drupal.stackexchange.com/questions/7199/how-to-hide-and-or-prevent-access-to-fields-in-a-form-such-as-group-audience-f