@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.

Fix Phortune so it allows users to create their accounts implicitly

Summary: This is a small fix for Phortune so that policies don't prevent the user accounts from being implicitly created when they first visit Phortune.

Test Plan: Visited Phortune and it worked.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

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

+6 -1
+6 -1
src/applications/phortune/storage/PhortuneAccount.php
··· 46 46 } 47 47 48 48 public function getPolicy($capability) { 49 - return PhabricatorPolicies::POLICY_NOONE; 49 + if ($this->getPHID() === null) { 50 + // Allow a user to create an account for themselves. 51 + return PhabricatorPolicies::POLICY_USER; 52 + } else { 53 + return PhabricatorPolicies::POLICY_NOONE; 54 + } 50 55 } 51 56 52 57 public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {