Commit a3e99348 authored by Dries's avatar Dries
Browse files

- Fixed bug #42: "Nodes end up in submission queue, even if 'queue for
  moderation' is toggeld off."
parent 47daf7f0
......@@ -32,7 +32,12 @@ function story_save($op, $node) {
}
if ($op == "create") {
return array("body" => filter($node->body), "moderate" => 1, "teaser" => filter($node->teaser));
if (user_access("adminster nodes")) {
return array();
}
else {
return array("body" => filter($node->body), "moderate" => 1, "teaser" => filter($node->teaser));
}
}
if ($op == "decline") {
......
......@@ -32,7 +32,12 @@ function story_save($op, $node) {
}
if ($op == "create") {
return array("body" => filter($node->body), "moderate" => 1, "teaser" => filter($node->teaser));
if (user_access("adminster nodes")) {
return array();
}
else {
return array("body" => filter($node->body), "moderate" => 1, "teaser" => filter($node->teaser));
}
}
if ($op == "decline") {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment