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:
parent
f55168b08b
commit
5b8e7d2de3
2 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,10 @@
|
|||
|
||||
final class DivinerMainController extends DivinerController {
|
||||
|
||||
public function shouldAllowPublic() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function processRequest() {
|
||||
$request = $this->getRequest();
|
||||
$viewer = $request->getUser();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue