Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15515062
D14326.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
757 B
Referenced Files
None
Subscribers
None
D14326.id.diff
View Options
diff --git a/src/applications/people/controller/PhabricatorPeopleProfileController.php b/src/applications/people/controller/PhabricatorPeopleProfileController.php
--- a/src/applications/people/controller/PhabricatorPeopleProfileController.php
+++ b/src/applications/people/controller/PhabricatorPeopleProfileController.php
@@ -72,11 +72,14 @@
$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));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 19, 7:25 AM (4 d, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7726504
Default Alt Text
D14326.id.diff (757 B)
Attached To
Mode
D14326: Disable "Send Message" profile action if viewer is logged out
Attached
Detach File
Event Timeline
Log In to Comment