summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.module3
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(