mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 23:32:40 +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:
parent
96cecebf65
commit
b72b6eb18f
4 changed files with 16 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue