1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-10 14:51:06 +01:00

Support logged-out access to the document rendering endpoint

Summary: Ref T13105. Currently, logged-out users can't render documents via the endpoint even if they otherwise have access to the file.

Test Plan: Viewed a file as a logged-out user and re-rendered it via Ajax.

Reviewers: mydeveloperday

Reviewed By: mydeveloperday

Maniphest Tasks: T13105

Differential Revision: https://secure.phabricator.com/D19258
This commit is contained in:
epriestley 2018-03-26 07:14:00 -07:00
parent f583406ba9
commit 38999e25ac

View file

@ -7,6 +7,10 @@ final class PhabricatorFileDocumentController
private $engine;
private $ref;
public function shouldAllowPublic() {
return true;
}
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();