Fix two excessively aggressive policy checks

Summary:

  - Some applications need public access regardless of policy configuration.
  - The file data endpoint should ignore policies.
This commit is contained in:
epriestley
2013-10-03 14:38:08 -07:00
parent 6100906273
commit 1296c3d347
2 changed files with 11 additions and 1 deletions

View File

@@ -127,10 +127,16 @@ abstract class PhabricatorController extends AphrontController {
// a policy exception if the viewer doesn't have permission.
$application = $this->getCurrentApplication();
if ($application) {
/*
TODO: Reenable this, but it's breaking some applications which need public
access in all cases, like Files and Conduit.
id(new PhabricatorApplicationQuery())
->setViewer($user)
->withPHIDs(array($application->getPHID()))
->executeOne();
*/
}
}