From a243145d3fef5996394518a2a3a9f8254ed2202a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 16 May 2007 13:45:17 +0000 Subject: - Patch #137767 by chx and pwolanin: multiple menu support. --- modules/node/node.module | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 8113c6cdd..27f0bce96 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1248,6 +1248,7 @@ function node_menu() { 'title' => 'Edit', 'page callback' => 'node_page_edit', 'page arguments' => array(1), + 'access callback' => 'node_access', 'access arguments' => array('update', 1), 'weight' => 1, 'type' => MENU_LOCAL_TASK); @@ -1255,6 +1256,7 @@ function node_menu() { 'title' => 'Delete', 'page callback' => 'drupal_get_form', 'page arguments' => array('node_delete_confirm', 1), + 'access callback' => 'node_access', 'access arguments' => array('delete', 1), 'weight' => 1, 'type' => MENU_CALLBACK); -- cgit v1.2.3