Commit 94fd7409 authored by Kjartan's avatar Kjartan

- Moved the theme("header") call in node_page outside the access check so the

  page renders properly when a user does not have access to content.
parent 45d5aad6
......@@ -1369,6 +1369,7 @@ function node_page() {
$op = $_POST["op"];
$edit = $_POST["edit"];
theme("header");
if (user_access("access content")) {
if (empty($op)) {
$op = arg(1);
......@@ -1379,7 +1380,6 @@ function node_page() {
return;
}
theme("header");
$name = module_invoke(arg(2), "node", "name");
switch ($op) {
case "add":
......
......@@ -1369,6 +1369,7 @@ function node_page() {
$op = $_POST["op"];
$edit = $_POST["edit"];
theme("header");
if (user_access("access content")) {
if (empty($op)) {
$op = arg(1);
......@@ -1379,7 +1380,6 @@ function node_page() {
return;
}
theme("header");
$name = module_invoke(arg(2), "node", "name");
switch ($op) {
case "add":
......
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