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

Allow public viewing of profiles and people calendars

Summary: Ref T4830, this allows profile view and calendar profile view to be publicly visible. Also adds a note reminding the user of visibility.

Test Plan: Log out, visit a profile and various links.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T4830

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

+19 -1
+4
src/applications/people/controller/PhabricatorPeopleCalendarController.php
··· 5 5 6 6 private $username; 7 7 8 + public function shouldAllowPublic() { 9 + return true; 10 + } 11 + 8 12 public function shouldRequireAdmin() { 9 13 return false; 10 14 }
+4
src/applications/people/controller/PhabricatorPeopleProfileController.php
··· 5 5 6 6 private $username; 7 7 8 + public function shouldAllowPublic() { 9 + return true; 10 + } 11 + 8 12 public function shouldRequireAdmin() { 9 13 return false; 10 14 }
+11 -1
src/applications/people/controller/PhabricatorPeopleProfileEditController.php
··· 66 66 ->setUser($viewer); 67 67 68 68 $field_list->appendFieldsToForm($form); 69 - 70 69 $form 71 70 ->appendChild( 72 71 id(new AphrontFormSubmitControl()) 73 72 ->addCancelButton($profile_uri) 74 73 ->setValue(pht('Save Profile'))); 75 74 75 + $allow_public = PhabricatorEnv::getEnvConfig('policy.allow-public'); 76 + $note = null; 77 + if ($allow_public) { 78 + $note = id(new PHUIInfoView()) 79 + ->setSeverity(PHUIInfoView::SEVERITY_WARNING) 80 + ->appendChild(pht( 81 + 'Information on user profiles on this install is publicly '. 82 + 'visible.')); 83 + } 84 + 76 85 $form_box = id(new PHUIObjectBoxView()) 77 86 ->setHeaderText(pht('Edit Profile')) 87 + ->setInfoView($note) 78 88 ->setValidationException($validation_exception) 79 89 ->setForm($form); 80 90