From 22dc3c1be2e09c9c27b0d0b45391751a12e7e0bf Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 21 Aug 2015 06:49:49 -0700 Subject: [PATCH] Allow public on Ponder Questions, History pages Summary: Ref T9234, these should allow being publicly visible Test Plan: log out, see page Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T9234 Differential Revision: https://secure.phabricator.com/D13952 --- .../ponder/controller/PonderAnswerHistoryController.php | 4 ++++ .../ponder/controller/PonderQuestionHistoryController.php | 4 ++++ .../ponder/controller/PonderQuestionViewController.php | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/applications/ponder/controller/PonderAnswerHistoryController.php b/src/applications/ponder/controller/PonderAnswerHistoryController.php index b2c42de8c8..136cd8532e 100644 --- a/src/applications/ponder/controller/PonderAnswerHistoryController.php +++ b/src/applications/ponder/controller/PonderAnswerHistoryController.php @@ -2,6 +2,10 @@ final class PonderAnswerHistoryController extends PonderController { + public function shouldAllowPublic() { + return true; + } + public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); diff --git a/src/applications/ponder/controller/PonderQuestionHistoryController.php b/src/applications/ponder/controller/PonderQuestionHistoryController.php index 91ded8c094..e7801ab4b1 100644 --- a/src/applications/ponder/controller/PonderQuestionHistoryController.php +++ b/src/applications/ponder/controller/PonderQuestionHistoryController.php @@ -2,6 +2,10 @@ final class PonderQuestionHistoryController extends PonderController { + public function shouldAllowPublic() { + return true; + } + public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); diff --git a/src/applications/ponder/controller/PonderQuestionViewController.php b/src/applications/ponder/controller/PonderQuestionViewController.php index 555ef51711..fde0f067a3 100644 --- a/src/applications/ponder/controller/PonderQuestionViewController.php +++ b/src/applications/ponder/controller/PonderQuestionViewController.php @@ -2,6 +2,10 @@ final class PonderQuestionViewController extends PonderController { + public function shouldAllowPublic() { + return true; + } + public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id');