### Eclipse Workspace Patch 1.0 #P drupal_head Index: modules/contact/contact.module =================================================================== RCS file: /cvs/drupal/drupal/modules/contact/contact.module,v retrieving revision 1.80 diff -u -r1.80 contact.module --- modules/contact/contact.module 13 Apr 2007 08:56:58 -0000 1.80 +++ modules/contact/contact.module 23 Apr 2007 17:10:30 -0000 @@ -35,7 +35,7 @@ * Implementation of hook_perm */ function contact_perm() { - return array('access site-wide contact form'); + return array('access site-wide contact form','create personal contact form'); } /** * Implementation of hook_menu(). @@ -115,7 +115,7 @@ * Allows the user the option of enabling/disabling his personal contact form. */ function contact_user($type, &$edit, &$user, $category = NULL) { - if ($type == 'form' && $category == 'account') { + if ($type == 'form' && $category == 'account' && user_access('create personal contact form')) { $form['contact'] = array('#type' => 'fieldset', '#title' => t('Contact settings'), '#weight' => 5,