From be42df23acea1dbdddb8b0d77c2fd5bcbc0e6f1e Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 11 May 2007 22:04:26 +0200 Subject: don't show page metadata for non accessible pages darcs-hash:20070511200426-7ad00-23e5b8d85d00caf3b0b0cdcdbb56dea9e30c9578.gz --- inc/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/template.php b/inc/template.php index 76e016878..1738aacf6 100644 --- a/inc/template.php +++ b/inc/template.php @@ -783,8 +783,8 @@ function tpl_pageinfo(){ $fn = utf8_decodeFN($fn); $date = date($conf['dformat'],$INFO['lastmod']); - // print it - if($INFO['exists']){ + // print it, but hide if user/group is not allowed to access (FS#970) + if(act_permcheck($ACT) != "denied" && $INFO['exists']){ print $fn; print ' · '; print $lang['lastmod']; -- cgit v1.2.3