summaryrefslogtreecommitdiffstats
path: root/code/links.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/links.inc.php')
-rw-r--r--code/links.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/links.inc.php b/code/links.inc.php
index b5ae18e..d65eea1 100644
--- a/code/links.inc.php
+++ b/code/links.inc.php
@@ -3,7 +3,7 @@
class Links {
function GetNeonLink($page, $extra = '', $html = true) {
- if($GLOBALS['pages']->HasAccess($page, 'c')) {
+ if($GLOBALS['pages']->HasReadAccess($page, 'c')) {
if($GLOBALS['user']->login_type == 'url')
$ret = 'index.php?page=' . $page . '&login=' . $GLOBALS['user']->login_key
. ($extra ? '&' . $extra : '');
@@ -27,7 +27,7 @@
}
function GetNavPage($page) {
- if($GLOBALS['pages']->HasAccess($page, 'n')) {
+ if($GLOBALS['pages']->HasReadAccess($page, 'n')) {
$page = $GLOBALS['pages']->Get($page, 'n');
return $page['content'];
}