Commit 908d3990 authored by Kjartan's avatar Kjartan
Browse files

page.module

- removed access checking for links.
parent fe8222e7
......@@ -11,7 +11,7 @@ function Page($page) {
}
function page_link($type) {
if ($type == "page" && user_access("access content")) {
if ($type == "page") {
$result = db_query("SELECT nid,link FROM page WHERE link != '' ORDER BY link");
while ($page = db_fetch_object($result)) {
$links[] = "<a href=\"node.php?id=$page->nid\">$page->link</a>";
......
......@@ -11,7 +11,7 @@ function Page($page) {
}
function page_link($type) {
if ($type == "page" && user_access("access content")) {
if ($type == "page") {
$result = db_query("SELECT nid,link FROM page WHERE link != '' ORDER BY link");
while ($page = db_fetch_object($result)) {
$links[] = "<a href=\"node.php?id=$page->nid\">$page->link</a>";
......
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