From c6e92a3c4d55587151ee7d7aa52e889d2ed769b9 Mon Sep 17 00:00:00 2001 From: David Lorentsen <zyberdog@quakenet.org> Date: Wed, 21 Feb 2007 14:30:07 +0100 Subject: [PATCH] hide pageinfo if no access darcs-hash:20070221133007-ce218-844345922ee66ce33c3f0969b5fc6d643ac618ce.gz --- inc/template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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']){ -- GitLab