mirror of
https://github.com/silverstripe/silverstripe-versionfeed
synced 2024-09-29 12:49:15 +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
|
// Check viewability of changes
|
||||||
if(!Config::inst()->get('VersionFeed', 'changes_enabled')
|
if(!Config::inst()->get('VersionFeed', 'changes_enabled')
|
||||||
|| !$this->owner->PublicHistory
|
|| !$this->owner->PublicHistory
|
||||||
|| $this->owner->ID == -1
|
|| $this->owner->Version == -1
|
||||||
) {
|
) {
|
||||||
return $this->owner->httpError(404, 'Page history not viewable');
|
return $this->owner->httpError(404, 'Page history not viewable');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user