1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 17:22:42 +01:00

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:
Chad Little 2015-07-22 13:26:13 -07:00
parent 96cecebf65
commit b72b6eb18f
4 changed files with 16 additions and 0 deletions

View file

@ -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'];
} }

View file

@ -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'];
} }

View file

@ -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())

View file

@ -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();