Skip to content
Snippets Groups Projects
Commit a3e99348 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Fixed bug #42: "Nodes end up in submission queue, even if 'queue for
  moderation' is toggeld off."
parent 47daf7f0
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -32,8 +32,13 @@ function story_save($op, $node) {
}
if ($op == "create") {
if (user_access("adminster nodes")) {
return array();
}
else {
return array("body" => filter($node->body), "moderate" => 1, "teaser" => filter($node->teaser));
}
}
if ($op == "decline") {
return array("status" => 0, "promote" => 0);
......
......@@ -32,8 +32,13 @@ function story_save($op, $node) {
}
if ($op == "create") {
if (user_access("adminster nodes")) {
return array();
}
else {
return array("body" => filter($node->body), "moderate" => 1, "teaser" => filter($node->teaser));
}
}
if ($op == "decline") {
return array("status" => 0, "promote" => 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment