From f35a38b086ab6eb270dde60c8060e88e6baa1ee4 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 23 Dec 2014 10:00:12 -0800 Subject: [PATCH] Allow public access to the project edit/history page Summary: Fixes T6807. This page shows edit history and has edit options, but is not an edit interface itself per se. Allowing public access is consistent with other interfaces/applications. Test Plan: Viewed a public project's history page as a public user. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T6807 Differential Revision: https://secure.phabricator.com/D11039 --- .../controller/PhabricatorProjectEditMainController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/applications/project/controller/PhabricatorProjectEditMainController.php b/src/applications/project/controller/PhabricatorProjectEditMainController.php index 295018731d..ec874c789f 100644 --- a/src/applications/project/controller/PhabricatorProjectEditMainController.php +++ b/src/applications/project/controller/PhabricatorProjectEditMainController.php @@ -5,6 +5,12 @@ final class PhabricatorProjectEditMainController private $id; + public function shouldAllowPublic() { + // This page shows project history and some detailed information, and + // it's reasonable to allow public access to it. + return true; + } + public function willProcessRequest(array $data) { $this->id = idx($data, 'id'); }