summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lorentsen <zyberdog@quakenet.org>2007-02-21 14:30:07 +0100
committerDavid Lorentsen <zyberdog@quakenet.org>2007-02-21 14:30:07 +0100
commitc6e92a3c4d55587151ee7d7aa52e889d2ed769b9 (patch)
tree5161f45bb9ce64a781dd7b763cd1b8fb5a06a81a
parent59f042c95cf4687c6d03ae02645afee1a76dd167 (diff)
downloadrpg-c6e92a3c4d55587151ee7d7aa52e889d2ed769b9.tar.gz
rpg-c6e92a3c4d55587151ee7d7aa52e889d2ed769b9.tar.bz2
hide pageinfo if no access
darcs-hash:20070221133007-ce218-844345922ee66ce33c3f0969b5fc6d643ac618ce.gz
-rw-r--r--inc/template.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 0e2c6539d..72c684fc7 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -761,7 +761,11 @@ function tpl_pageinfo(){
global $lang;
global $INFO;
global $REV;
-
+ global $ID;
+
+ // return if we are not allowed to view the page
+ if (!auth_quickaclcheck($ID)) { return; }
+
// prepare date and path
$fn = $INFO['filepath'];
if(!$conf['fullpath']){