I have a site where a user can add Audio nodes through e-mail using Mailhandler and Mailsave. I want a user to be able to later edit the Location of sounds he/she has posted, but I don't want non-admin users to be able to edit the "Audio Metadata" section or to use "Replace this with a new file" in the "Audio File Info" section.

I don't really see anything relevant in the Theme Snippets section of Drupal's website - does anyone know how to do this?

Comments

jakew’s picture

I also don't want users to be able to create their own Audio nodes, except by going through Mailhandler/Mailsave. Problem is, the "create audio nodes" access control option determines whether a user can add an Audio node both through www.example.com/node/add/audio and through Mailsave. Should I just count on the ignorance of the general user to not know about node/add/audio ?

add1sun’s picture

You can modify the form in the theme layer or in a custom module. I recently wrote an article with some examples: http://www.lullabot.com/articles/modifying-forms-5-and-6 . You can add an if check around the modifications that see if the user is an admin or not.

Lullabot loves you | Be a Ninja, join the Drupal Dojo

Drupalize.Me, The best Drupal training, available all the time, anywhere!

jakew’s picture

Thanks a lot, I'll look through that.