mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-18 10:41:08 +01:00
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
This commit is contained in:
parent
06a3cf04fe
commit
f35a38b086
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,12 @@ final class PhabricatorProjectEditMainController
|
||||||
|
|
||||||
private $id;
|
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) {
|
public function willProcessRequest(array $data) {
|
||||||
$this->id = idx($data, 'id');
|
$this->id = idx($data, 'id');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue