diff -r 17eebd541742 -r e48b1937dfc3 includes/pageprocess.php --- a/includes/pageprocess.php Sat Mar 21 18:57:34 2009 -0400 +++ b/includes/pageprocess.php Sat Mar 21 18:58:41 2009 -0400 @@ -2,7 +2,7 @@ /* * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between - * Version 1.0.5 (Ferrishyn) + * Version 1.0.6 (Roane) * pageprocess.php - intelligent retrieval of pages * Copyright (C) 2006-2007 Dan Fuhry * @@ -165,6 +165,11 @@ $this->err_access_denied(); return false; } + if ( $this->revision_id > 0 && !$this->perms->get_permissions('history_view') ) + { + $this->err_access_denied(); + return false; + } $pathskey = $paths->nslist[ $this->namespace ] . $this->page_id; $strict_no_headers = false; if ( isset($paths->pages[$pathskey]) )