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 Beakerboy on
I'm new to Drupal, but good with SQL and PHP. I'm running drupal 7.9 (I'll upgrade to 7.10 this weekend) with a bunch of modules including; views, fileds, and profile2. This site is for my local homebrew club, and I've added a new field to the account settings to indicate the latest year that club dues have been paid by this member. Obviously I don't want a user to be able to change this on their own. How do I lock this down so it can be seen, but not edited by the user in their user page?
Thanks,
Kevin
Comments
Finally found the answer
After spending a week trying different modules and tying to learn hooks I finally figured it out. I've seen others ask this question, but nobody ever suggested the field_permissions module. Installed it and it does exactly what I needed.
or address it at the theme level
Glad you found your answer. Another option is to protect the data using the theme ... go here for a discussion of the same problem: http://drupal.org/node/963412 The advantage of addressing it at the theme level is that you don't have any overhead of another module. If you poke around at modules > profile you'll see the default template.