mirror of
https://github.com/silverstripe/silverstripe-versionfeed
synced 2024-06-22 20:49:22 +02:00
Update VersionFeed_Controller.php
Make it compatible with the existing test
This commit is contained in:
parent
527b2e4f45
commit
108f618d62
|
@ -50,7 +50,7 @@ class VersionFeed_Controller extends Extension {
|
|||
// Check viewability of changes
|
||||
if(!Config::inst()->get('VersionFeed', 'changes_enabled')
|
||||
|| !$this->owner->PublicHistory
|
||||
|| $this->owner->ID == -1
|
||||
|| $this->owner->Version == -1
|
||||
) {
|
||||
return $this->owner->httpError(404, 'Page history not viewable');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user