mirror of
https://github.com/silverstripe/silverstripe-versionfeed
synced 2024-10-22 11:05:31 +02:00
parent
2d6337dad9
commit
527b2e4f45
@ -48,7 +48,10 @@ class VersionFeed_Controller extends Extension {
|
|||||||
*/
|
*/
|
||||||
public function changes() {
|
public function changes() {
|
||||||
// Check viewability of 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');
|
return $this->owner->httpError(404, 'Page history not viewable');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user