From de723ba8b5bdf292e757047b341f0759eae6f939 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 12 Dec 2005 14:25:45 +0000 Subject: - Patch #40393 by Richard: fixed permissions of URL settings on node submission page. --- modules/path/path.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index 5ba006086..1a7f7b9a4 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -219,7 +219,7 @@ function path_nodeapi(&$node, $op, $arg) { * Implementation of hook_form_alter(). */ function path_form_alter($form_id, &$form) { - if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) { + if (user_access('create url aliases') && isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) { $path = $form['#node']->path; $form['path'] = array( '#type' => 'fieldset', -- cgit v1.2.3