fix of invalid cache tag

This commit is contained in:
Peter Thaleikis 2014-12-12 10:26:33 +13:00
parent 2d6337dad9
commit ed4fee2478

View File

@ -48,7 +48,10 @@ class VersionFeed_Controller extends Extension {
*/
public function changes() {
// Check viewability of changes
if(!Config::inst()->get('VersionFeed', 'changes_enabled') || !$this->owner->PublicHistory) {
if(!Config::inst()->get('VersionFeed', 'changes_enabled')
|| !$this->owner->PublicHistory
|| $this->owner->ID == -1
) {
return $this->owner->httpError(404, 'Page history not viewable');
}