summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-05-11 22:04:26 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-05-11 22:04:26 +0200
commitbe42df23acea1dbdddb8b0d77c2fd5bcbc0e6f1e (patch)
tree7537b00f6de0769c82a8bfc68e652065a9378c8c
parentd1c7b6ec50c31bdac17533c13e908fb41c1e1990 (diff)
downloadrpg-be42df23acea1dbdddb8b0d77c2fd5bcbc0e6f1e.tar.gz
rpg-be42df23acea1dbdddb8b0d77c2fd5bcbc0e6f1e.tar.bz2
don't show page metadata for non accessible pages
darcs-hash:20070511200426-7ad00-23e5b8d85d00caf3b0b0cdcdbb56dea9e30c9578.gz
-rw-r--r--inc/template.php4
1 files 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 ' &middot; ';
print $lang['lastmod'];