1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 17:28:51 +02:00

Allow lightbox comments to be viewed logged out

Summary: Fixes T12160. Lightbox thread view should be visible if file is public.

Test Plan:
Add a file to a task, log out, click on file in task, get lightbox and no error. Expand comments, see login box.

{F2867067}

{F2867088}

{F2867098}

{F2867114}

{F2867124}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12160

Differential Revision: https://secure.phabricator.com/D17347
This commit is contained in:
Chad Little 2017-02-13 13:46:39 -08:00
parent 6f37685a75
commit f9163bf065

View file

@ -3,6 +3,10 @@
final class PhabricatorFileLightboxController final class PhabricatorFileLightboxController
extends PhabricatorFileController { extends PhabricatorFileController {
public function shouldAllowPublic() {
return true;
}
public function handleRequest(AphrontRequest $request) { public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer(); $viewer = $request->getViewer();
$phid = $request->getURIData('phid'); $phid = $request->getURIData('phid');