Disable the automatic creation of node revisions for non administrators
This commit is contained in:
parent
d1fe5dac3b
commit
e76acf63f2
1 changed files with 3 additions and 3 deletions
|
@ -683,9 +683,9 @@ function book_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
|
|||
break;
|
||||
case 'presave':
|
||||
// Always save a revision for non-administrators.
|
||||
if (!empty($node->book['bid']) && !user_access('administer nodes')) {
|
||||
$node->revision = 1;
|
||||
}
|
||||
# if (!empty($node->book['bid']) && !user_access('administer nodes')) {
|
||||
# $node->revision = 1;
|
||||
# }
|
||||
// Make sure a new node gets a new menu link.
|
||||
if (empty($node->nid)) {
|
||||
$node->book['mlid'] = NULL;
|
||||
|
|
Reference in a new issue