diff -up mail_edit_old/mail_edit.module mail_edit/mail_edit.module --- mail_edit_old/mail_edit.module 2008-11-03 17:17:15.000000000 +0100 +++ mail_edit/mail_edit.module 2008-11-03 17:19:47.000000000 +0100 @@ -5,7 +5,7 @@ function mail_edit_menu($may_cache) { $items = array(); if ($may_cache) { $items[] = array( - 'access' => user_access('administer site configuration'), + 'access' => user_access('administer mail templates'), 'callback' => 'mail_edit_overview', 'description' => t('Edit mails being sent out by Drupal.'), 'path' => 'admin/build/mail_edit', @@ -89,6 +89,13 @@ function mail_edit_mail_alter(&$mailkey, } /** + * Implementation of hook_perm(). + */ +function mail_edit_perm() { + return array('administer mail templates'); +} + +/** * Menu callback; administrative mail editing overview. */ function mail_edit_overview($mailkey = '') {