summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-07-04 10:30:42 +0000
committerDries Buytaert <dries@buytaert.net>2004-07-04 10:30:42 +0000
commit353c05d01536aac26fec7e9cfee0e84838973286 (patch)
treee95fd1a0dc783de471ec5fd2ed142046ed81fc6b /modules/node
parentf3aa87122efa054eb12b7b2f25dd95b81132c7c5 (diff)
downloadbrdo-353c05d01536aac26fec7e9cfee0e84838973286.tar.gz
brdo-353c05d01536aac26fec7e9cfee0e84838973286.tar.bz2
- Made it possible to edit blog posts and made the blog module use tabs.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 7ec3e4c1e..1570b2953 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -679,13 +679,15 @@ function node_menu() {
'weight' => 1);
if (arg(0) == 'node' && is_numeric(arg(1))) {
+ $node = node_load(array('nid' => arg(1)));
+
$items[] = array('path' => 'node/'. arg(1), 'title' => t('view'),
'callback' => 'node_page',
'access' => user_access('access content'),
'type' => MENU_CALLBACK);
$items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('edit'),
'callback' => 'node_page',
- 'access' => user_access('administer nodes'),
+ 'access' => node_access('update', $node),
'type' => MENU_LOCAL_TASK);
}