diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 17b1e837a6..08fedabd49 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1798,6 +1798,7 @@ phutil_register_library_map(array( 'ManiphestCustomFieldStringIndex' => 'applications/maniphest/storage/ManiphestCustomFieldStringIndex.php', 'ManiphestDAO' => 'applications/maniphest/storage/ManiphestDAO.php', 'ManiphestDefaultEditCapability' => 'applications/maniphest/capability/ManiphestDefaultEditCapability.php', + 'ManiphestDefaultPriorityEditCapability' => 'applications/maniphest/capability/ManiphestDefaultPriorityEditCapability.php', 'ManiphestDefaultViewCapability' => 'applications/maniphest/capability/ManiphestDefaultViewCapability.php', 'ManiphestEditConduitAPIMethod' => 'applications/maniphest/conduit/ManiphestEditConduitAPIMethod.php', 'ManiphestEditEngine' => 'applications/maniphest/editor/ManiphestEditEngine.php', @@ -8004,6 +8005,7 @@ phutil_register_library_map(array( 'ManiphestCustomFieldStringIndex' => 'PhabricatorCustomFieldStringIndexStorage', 'ManiphestDAO' => 'PhabricatorLiskDAO', 'ManiphestDefaultEditCapability' => 'PhabricatorPolicyCapability', + 'ManiphestDefaultPriorityEditCapability' => 'PhabricatorPolicyCapability', 'ManiphestDefaultViewCapability' => 'PhabricatorPolicyCapability', 'ManiphestEditConduitAPIMethod' => 'PhabricatorEditEngineAPIMethod', 'ManiphestEditEngine' => 'PhabricatorEditEngine', diff --git a/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php b/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php index c8cfe4fd2e..cd0843f3c2 100644 --- a/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php +++ b/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php @@ -77,6 +77,12 @@ final class PhabricatorDashboardQueryPanelType } if (!$saved) { + if (!$viewer->isLoggedIn()) { + // If user is not logged in, authored/assigned/etc queries are empty. + return id(new PHUIObjectItemListView()) + ->setUser($viewer) + ->setNoDataString(pht('You must log in to access this panel.')); + } throw new Exception( pht( 'Query "%s" is unknown to application search engine "%s"!',