@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Support logged-out users in Fund

Summary: Ref T5835. Sprinkle `shouldAllowPublic()` around to let logged-out users gain access.

Test Plan: Viewed an initiative while logged out.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5835

Differential Revision: https://secure.phabricator.com/D10683

+18
+4
src/applications/fund/controller/FundBackerListController.php
··· 7 7 private $queryKey; 8 8 private $initiative; 9 9 10 + public function shouldAllowPublic() { 11 + return true; 12 + } 13 + 10 14 public function willProcessRequest(array $data) { 11 15 $this->id = idx($data, 'id'); 12 16 $this->queryKey = idx($data, 'queryKey');
+4
src/applications/fund/controller/FundInitiativeListController.php
··· 5 5 6 6 private $queryKey; 7 7 8 + public function shouldAllowPublic() { 9 + return true; 10 + } 11 + 8 12 public function willProcessRequest(array $data) { 9 13 $this->queryKey = idx($data, 'queryKey'); 10 14 }
+4
src/applications/fund/controller/FundInitiativeViewController.php
··· 5 5 6 6 private $id; 7 7 8 + public function shouldAllowPublic() { 9 + return true; 10 + } 11 + 8 12 public function willProcessRequest(array $data) { 9 13 $this->id = $data['id']; 10 14 }
+4
src/applications/fund/editor/FundInitiativeEditor.php
··· 104 104 return; 105 105 case PhabricatorTransactions::TYPE_SUBSCRIBERS: 106 106 case PhabricatorTransactions::TYPE_EDGE: 107 + case PhabricatorTransactions::TYPE_VIEW_POLICY: 108 + case PhabricatorTransactions::TYPE_EDIT_POLICY: 107 109 return; 108 110 } 109 111 ··· 156 158 return; 157 159 case PhabricatorTransactions::TYPE_SUBSCRIBERS: 158 160 case PhabricatorTransactions::TYPE_EDGE: 161 + case PhabricatorTransactions::TYPE_VIEW_POLICY: 162 + case PhabricatorTransactions::TYPE_EDIT_POLICY: 159 163 return; 160 164 } 161 165
+2
src/applications/phortune/editor/PhortuneMerchantEditor.php
··· 60 60 $object->setDescription($xaction->getNewValue()); 61 61 return; 62 62 case PhabricatorTransactions::TYPE_EDGE: 63 + case PhabricatorTransactions::TYPE_VIEW_POLICY: 63 64 return; 64 65 } 65 66 ··· 74 75 case PhortuneMerchantTransaction::TYPE_NAME: 75 76 case PhortuneMerchantTransaction::TYPE_DESCRIPTION: 76 77 case PhabricatorTransactions::TYPE_EDGE: 78 + case PhabricatorTransactions::TYPE_VIEW_POLICY: 77 79 return; 78 80 } 79 81