mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Check for calendar before settings status
Summary: We should not show the status line in the people hover card if the calendar app has been uninstalled or is not available for the current user. Test Plan: View hover card with calendar installed and uninstalled. Make sure I see the status at the correct time. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, chad, Korvin Maniphest Tasks: T5370 Differential Revision: https://secure.phabricator.com/D9577
This commit is contained in:
parent
657d061a78
commit
824b8108da
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ final class PhabricatorPeopleHovercardEventListener
|
|||
$hovercard->addField(pht('Account'), pht('Disabled'));
|
||||
} else if (!$user->isUserActivated()) {
|
||||
$hovercard->addField(pht('Account'), pht('Not Activated'));
|
||||
} else {
|
||||
} else if (PhabricatorApplication::isClassInstalledForViewer(
|
||||
'PhabricatorApplicationCalendar',
|
||||
$viewer)) {
|
||||
$statuses = id(new PhabricatorCalendarEvent())->loadCurrentStatuses(
|
||||
array($user->getPHID()));
|
||||
if ($statuses) {
|
||||
|
|
Loading…
Reference in a new issue