? verbose_perm_32956.patch
Index: pathauto.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.inc,v
retrieving revision 1.1.2.16
diff -u -p -r1.1.2.16 pathauto.inc
--- pathauto.inc	5 Nov 2007 12:55:02 -0000	1.1.2.16
+++ pathauto.inc	10 Nov 2007 21:23:22 -0000
@@ -172,7 +172,7 @@ function pathauto_cleanstring($string, $
  *   The alias that was created
  */
 function pathauto_create_alias($module, $op, $placeholders, $src, $type = NULL) {
-  if (($op != 'bulkupdate') and variable_get('pathauto_verbose', FALSE)) {
+  if (($op != 'bulkupdate') and variable_get('pathauto_verbose', FALSE) && user_access('notify of path changes')) {
     $verbose = TRUE;
   } 
   else {
@@ -308,7 +308,7 @@ function _pathauto_path_is_callback($pat
 function _pathauto_set_alias($src, $dst, $pid = NULL, $verbose = FALSE, $old_alias = NULL) {
   // Alert users that an existing callback cannot be overridden automatically
   if (_pathauto_path_is_callback($dst)) {
-    if ($verbose and user_access('create url aliases')) {
+    if ($verbose and user_access('notify of path changes')) {
       drupal_set_message(t('Ignoring alias '). $dst .t(' due to existing path conflict'));
     }
     return;
@@ -326,7 +326,7 @@ function _pathauto_set_alias($src, $dst,
         $redirect = TRUE; 
       }
     }
-    if ($verbose and user_access('create url aliases')) {
+    if ($verbose and user_access('notify of path changes')) {
       if ($redirect) {
         drupal_set_message(t('Created new alias %dst for %src, replacing %old_alias. %old_alias now redirects to %dst', array('%dst' => $dst, '%src' => $src, '%old_alias' => $old_alias)));
       }
Index: pathauto.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.module,v
retrieving revision 1.44.4.47
diff -u -p -r1.44.4.47 pathauto.module
--- pathauto.module	5 Nov 2007 12:53:58 -0000	1.44.4.47
+++ pathauto.module	10 Nov 2007 21:23:24 -0000
@@ -30,7 +30,7 @@ function pathauto_help($section) {
  * Implementation of hook_perm
  */
 function pathauto_perm() {
-  return array('administer pathauto');
+  return array('administer pathauto', 'notify of path changes');
 }
 
 /*
@@ -117,7 +117,6 @@ function pathauto_admin_settings() {
     '#default_value' => variable_get('pathauto_case', 1),
     '#options' => array(t('Leave case the same as source token values.'), t('Change to lower case')),
     );
-
     
   $form["general"]["pathauto_max_length"] = array('#type' => 'textfield',
     '#title' => t('Maximum alias length'), '#size' => 3, '#maxlength' => 3,
