From d415641b029f7793c68befbd5e1e151b7ac46cf3 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 22 Jul 2015 07:17:18 -0700 Subject: [PATCH] Allow XHProf to be publicly viewable Summary: I guess... because PHP? Ref T4830 Test Plan: Log out, see pages. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T4830 Differential Revision: https://secure.phabricator.com/D13673 --- .../xhprof/controller/PhabricatorXHProfProfileController.php | 4 ++++ .../controller/PhabricatorXHProfSampleListController.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php b/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php index 11e9e47ffc..7f3b155cdd 100644 --- a/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php +++ b/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php @@ -5,6 +5,10 @@ final class PhabricatorXHProfProfileController private $phid; + public function shouldAllowPublic() { + return true; + } + public function willProcessRequest(array $data) { $this->phid = $data['phid']; } diff --git a/src/applications/xhprof/controller/PhabricatorXHProfSampleListController.php b/src/applications/xhprof/controller/PhabricatorXHProfSampleListController.php index 3e2de9a54b..98f20436e4 100644 --- a/src/applications/xhprof/controller/PhabricatorXHProfSampleListController.php +++ b/src/applications/xhprof/controller/PhabricatorXHProfSampleListController.php @@ -5,6 +5,10 @@ final class PhabricatorXHProfSampleListController private $view; + public function shouldAllowPublic() { + return true; + } + public function willProcessRequest(array $data) { $this->view = idx($data, 'view', 'all'); }