1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 13:22:42 +01:00

Minor, allow documentation to be accessed while logged out.

This commit is contained in:
epriestley 2014-03-05 17:19:40 -08:00
parent f55168b08b
commit 5b8e7d2de3
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,10 @@
final class DivinerMainController extends DivinerController {
public function shouldAllowPublic() {
return true;
}
public function processRequest() {
$request = $this->getRequest();
$viewer = $request->getUser();

View file

@ -57,7 +57,7 @@ final class DivinerLiveBook extends DivinerDAO
}
public function getPolicy($capability) {
return $this->viewPolicy;
return PhabricatorPolicies::getMostOpenPolicy();
}
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {