--- save_as_draft/save_as_draft.module.orig 2009-09-08 08:43:40.000000000 +0000 +++ save_as_draft/save_as_draft.module 2009-09-08 11:20:48.000000000 +0000 @@ -62,7 +62,7 @@ 'title' => 'Edit revision', 'page callback' => 'save_as_draft_edit', 'page arguments' => array(1, 3), - 'access arguments' => TRUE, + 'access arguments' => array('administer nodes'), 'type' => MENU_CALLBACK, ); @@ -71,7 +71,7 @@ 'title' => 'Publish revision', 'page callback' => 'save_as_draft_publish', 'page arguments' => array(1, 3), - 'access arguments' => TRUE, + 'access arguments' => array('administer nodes'), 'type' => MENU_CALLBACK, ); // } @@ -321,6 +321,7 @@ */ function save_as_draft_edit($nid, $vid) { $node = node_load($nid, $vid); + module_load_include('inc', 'node', 'node.pages'); drupal_set_message(t('You are currently editing a revision of this post created on @date by @author.', array('@date' => format_date($node->changed, 'small'), '@author' => $node->name))); return drupal_get_form($node->type .'_node_form', $node); }