Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Paulset on
Hi,
I need to hide a field to the anonymous users.
I hesitate between two solutions: the module field permissions, or simply a modifcation of the node template by a condition of the type : if $logged_in
...
What is the safest / recommended solution (who guarantees that the user will have no access to the field by any way) ?
Thanks in advance for your advice
Comments
According to me field
According to me field permissions not render the fields which you want to hide,and to work with node template make some more effort with same solution.