Page MenuHomePhorge

D25598.1734641534.diff
No OneTemporary

D25598.1734641534.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1798,6 +1798,7 @@
'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 @@
'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
--- a/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
+++ b/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
@@ -77,6 +77,12 @@
}
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"!',

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 20:52 (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015372
Default Alt Text
D25598.1734641534.diff (2 KB)

Event Timeline