mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +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:
parent
f583406ba9
commit
38999e25ac
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,10 @@ final class PhabricatorFileDocumentController
|
|||
private $engine;
|
||||
private $ref;
|
||||
|
||||
public function shouldAllowPublic() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
$viewer = $request->getViewer();
|
||||
|
||||
|
|
Loading…
Reference in a new issue