diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-22 11:13:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-22 11:13:04 +0000 |
commit | c4f1e4ba13905004fdcef814bdba949ec842ce6b (patch) | |
tree | c5590b4a059ff7c758d01dd2b6a39e5f3d558aa2 /modules/path/path.module | |
parent | a8de1e92d73a673dc7404e5aa82de1df35f834be (diff) | |
download | brdo-c4f1e4ba13905004fdcef814bdba949ec842ce6b.tar.gz brdo-c4f1e4ba13905004fdcef814bdba949ec842ce6b.tar.bz2 |
- Patch #76444 by chx, moshe, eaton, angie et al: make it possible to control access to form elements.
Diffstat (limited to 'modules/path/path.module')
-rw-r--r-- | modules/path/path.module | 3 |
1 files changed, 2 insertions, 1 deletions
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( |