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

Disable "Send Message" profile action if viewer is logged out

Summary: Fixes T9598.

Test Plan:
- Used "Send Message" as a logged-in user.
- Used "Send Message" as a logged-out user. The action was disabled and clicking it popped up a login dialog.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9598

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

+3
+3
src/applications/people/controller/PhabricatorPeopleProfileController.php
··· 72 72 $href = id(new PhutilURI('/conpherence/new/')) 73 73 ->setQueryParam('participant', $user->getPHID()); 74 74 75 + $can_send = $viewer->isLoggedIn(); 76 + 75 77 $actions->addAction( 76 78 id(new PhabricatorActionView()) 77 79 ->setIcon('fa-comments') 78 80 ->setName(pht('Send Message')) 79 81 ->setWorkflow(true) 82 + ->setDisabled(!$can_send) 80 83 ->setHref($href)); 81 84 } 82 85