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;
|
private $id;
|
||||||
|
|
||||||
|
public function shouldAllowPublic() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function willProcessRequest(array $data) {
|
public function willProcessRequest(array $data) {
|
||||||
$this->id = $data['id'];
|
$this->id = $data['id'];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ final class PhabricatorXHPASTViewFramesetController
|
|||||||
|
|
||||||
private $id;
|
private $id;
|
||||||
|
|
||||||
|
public function shouldAllowPublic() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function willProcessRequest(array $data) {
|
public function willProcessRequest(array $data) {
|
||||||
$this->id = $data['id'];
|
$this->id = $data['id'];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ abstract class PhabricatorXHPASTViewPanelController
|
|||||||
private $id;
|
private $id;
|
||||||
private $storageTree;
|
private $storageTree;
|
||||||
|
|
||||||
|
public function shouldAllowPublic() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function willProcessRequest(array $data) {
|
public function willProcessRequest(array $data) {
|
||||||
$this->id = $data['id'];
|
$this->id = $data['id'];
|
||||||
$this->storageTree = id(new PhabricatorXHPASTViewParseTree())
|
$this->storageTree = id(new PhabricatorXHPASTViewParseTree())
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
final class PhabricatorXHPASTViewTreeController
|
final class PhabricatorXHPASTViewTreeController
|
||||||
extends PhabricatorXHPASTViewPanelController {
|
extends PhabricatorXHPASTViewPanelController {
|
||||||
|
|
||||||
|
public function shouldAllowPublic() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function processRequest() {
|
public function processRequest() {
|
||||||
$storage = $this->getStorageTree();
|
$storage = $this->getStorageTree();
|
||||||
$input = $storage->getInput();
|
$input = $storage->getInput();
|
||||||
|
|||||||
Reference in New Issue
Block a user