Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
5d5b285d
Commit
5d5b285d
authored
Sep 27, 2007
by
Gábor Hojtsy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#174220
by webernet: fix noticed in node module when a user has no adminiter nodes permission
parent
5566f740
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/node/node.module
modules/node/node.module
+1
-1
modules/node/node.pages.inc
modules/node/node.pages.inc
+1
-1
No files found.
modules/node/node.module
View file @
5d5b285d
...
...
@@ -810,7 +810,7 @@ function node_save(&$node) {
// Only store the log message if there's something to store; this prevents
// existing log messages from being unintentionally overwritten by a blank
// message. A new revision will have an empty log message (or $node->log).
$revisions_table_values
[
'log'
]
=
$node
->
log
;
$revisions_table_values
[
'log'
]
=
!
empty
(
$node
->
log
)
?
$node
->
log
:
''
;
$revisions_table_types
[
'log'
]
=
"'%s'"
;
}
$node_table_values
=
array
(
...
...
modules/node/node.pages.inc
View file @
5d5b285d
...
...
@@ -130,7 +130,7 @@ function node_form(&$form_state, $node) {
// Add a log field if the "Create new revision" option is checked, or if the
// current user has the ability to check that option.
if
(
$node
->
revision
||
user_access
(
'administer nodes'
))
{
if
(
!
empty
(
$node
->
revision
)
||
user_access
(
'administer nodes'
))
{
$form
[
'revision_information'
]
=
array
(
'#type'
=>
'fieldset'
,
'#title'
=>
t
(
'Revision information'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment