Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
96eb9c6f
Commit
96eb9c6f
authored
Mar 04, 2005
by
Steven Wittens
Browse files
#18226
: Non-admins were not obeying workflow.
parent
d16e18f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
96eb9c6f
...
...
@@ -1255,7 +1255,7 @@ function node_validate($node) {
// Validate for normal users:
$node
->
uid
=
$user
->
uid
?
$user
->
uid
:
0
;
// Force defaults in case people modify the form:
$node_options
=
variable_get
(
'node_options_'
.
$
edit
->
type
,
array
(
'status'
,
'promote'
));
$node_options
=
variable_get
(
'node_options_'
.
$
node
->
type
,
array
(
'status'
,
'promote'
));
$node
->
status
=
in_array
(
'status'
,
$node_options
);
$node
->
moderate
=
in_array
(
'moderate'
,
$node_options
);
$node
->
promote
=
in_array
(
'promote'
,
$node_options
);
...
...
modules/node/node.module
View file @
96eb9c6f
...
...
@@ -1255,7 +1255,7 @@ function node_validate($node) {
// Validate for normal users:
$node
->
uid
=
$user
->
uid
?
$user
->
uid
:
0
;
// Force defaults in case people modify the form:
$node_options
=
variable_get
(
'node_options_'
.
$
edit
->
type
,
array
(
'status'
,
'promote'
));
$node_options
=
variable_get
(
'node_options_'
.
$
node
->
type
,
array
(
'status'
,
'promote'
));
$node
->
status
=
in_array
(
'status'
,
$node_options
);
$node
->
moderate
=
in_array
(
'moderate'
,
$node_options
);
$node
->
promote
=
in_array
(
'promote'
,
$node_options
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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