silverstripe/silverstripe-cms — pull request #792 by hafriedlander (2013-07-04 02:56:13+00:00)
Title: FIX Not checking stage in SiteTree#canView

SiteTree versions that aren't the live version shouldn't be accessed by
regular users, but the logic to check that was split off into canViewStage,
which wasnt checked by code that isnt specifically SiteTree aware
(like RestfulServer)