From 78635a15c108104afddc81cc586bd794515ecec6 Mon Sep 17 00:00:00 2001 From: Gareth Evans Date: Mon, 16 Jun 2014 14:18:50 -0700 Subject: [PATCH] Only show profile status when calendar app installed Summary: If the calendar app is not installed we don't show the status. Origianlly the idea was to only show the status if the viewer had access to the app, but for display purposes this seems fine. Fixes T5087 Test Plan: View with and without calendar installed Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Maniphest Tasks: T5087 Differential Revision: https://secure.phabricator.com/D9582 --- .../people/customfield/PhabricatorUserStatusField.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/applications/people/customfield/PhabricatorUserStatusField.php b/src/applications/people/customfield/PhabricatorUserStatusField.php index 0b624706e0..5ea28c84d0 100644 --- a/src/applications/people/customfield/PhabricatorUserStatusField.php +++ b/src/applications/people/customfield/PhabricatorUserStatusField.php @@ -21,6 +21,11 @@ final class PhabricatorUserStatusField return true; } + public function isFieldEnabled() { + return PhabricatorApplication::isClassInstalled( + 'PhabricatorApplicationCalendar'); + } + public function renderPropertyViewValue(array $handles) { $user = $this->getObject(); $viewer = $this->requireViewer();