diff --git a/src/applications/people/controller/PhabricatorPeopleProfileController.php b/src/applications/people/controller/PhabricatorPeopleProfileController.php index 30af5057dd..02e3a2f27d 100644 --- a/src/applications/people/controller/PhabricatorPeopleProfileController.php +++ b/src/applications/people/controller/PhabricatorPeopleProfileController.php @@ -72,11 +72,14 @@ final class PhabricatorPeopleProfileController $href = id(new PhutilURI('/conpherence/new/')) ->setQueryParam('participant', $user->getPHID()); + $can_send = $viewer->isLoggedIn(); + $actions->addAction( id(new PhabricatorActionView()) ->setIcon('fa-comments') ->setName(pht('Send Message')) ->setWorkflow(true) + ->setDisabled(!$can_send) ->setHref($href)); }