From c4f1e4ba13905004fdcef814bdba949ec842ce6b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 22 Aug 2006 11:13:04 +0000 Subject: - Patch #76444 by chx, moshe, eaton, angie et al: make it possible to control access to form elements. --- modules/path/path.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index 23457f940..2a4b10ee7 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -255,13 +255,14 @@ function path_nodeapi(&$node, $op, $arg) { * Implementation of hook_form_alter(). */ function path_form_alter($form_id, &$form) { - if (user_access('create url aliases') && isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) { + if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) { $path = $form['#node']->path; $form['path'] = array( '#type' => 'fieldset', '#title' => t('URL path settings'), '#collapsible' => TRUE, '#collapsed' => empty($path), + '#access' => user_access('create url aliases'), '#weight' => 30, ); $form['path']['path'] = array( -- cgit v1.2.3