mirror of
https://github.com/silverstripe/silverstripe-versionfeed
synced 2024-06-16 09:41:43 +02:00
Merge ed4fee2478
into 2d6337dad9
This commit is contained in:
commit
7ee2ffc45e
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user