Allow XHPAST to be viewed public
Summary: Ref T4830. Not sure this //should// be public (consume resources?) Test Plan: View logged out. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T4830 Differential Revision: https://secure.phabricator.com/D13674
This commit is contained in:
@@ -5,6 +5,10 @@ final class PhabricatorXHPASTViewFrameController
|
||||
|
||||
private $id;
|
||||
|
||||
public function shouldAllowPublic() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function willProcessRequest(array $data) {
|
||||
$this->id = $data['id'];
|
||||
}
|
||||
|
||||
@@ -5,6 +5,10 @@ final class PhabricatorXHPASTViewFramesetController
|
||||
|
||||
private $id;
|
||||
|
||||
public function shouldAllowPublic() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function willProcessRequest(array $data) {
|
||||
$this->id = $data['id'];
|
||||
}
|
||||
|
||||
@@ -6,6 +6,10 @@ abstract class PhabricatorXHPASTViewPanelController
|
||||
private $id;
|
||||
private $storageTree;
|
||||
|
||||
public function shouldAllowPublic() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function willProcessRequest(array $data) {
|
||||
$this->id = $data['id'];
|
||||
$this->storageTree = id(new PhabricatorXHPASTViewParseTree())
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
final class PhabricatorXHPASTViewTreeController
|
||||
extends PhabricatorXHPASTViewPanelController {
|
||||
|
||||
public function shouldAllowPublic() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function processRequest() {
|
||||
$storage = $this->getStorageTree();
|
||||
$input = $storage->getInput();
|
||||
|
||||
Reference in New Issue
Block a user