diff --git a/inc/template.php b/inc/template.php
index 0e2c6539d64e5fe4d43db6a4824ead816ab8f938..72c684fc7ded30bedc972a04ec33d7cc8a776815 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']){