Page MenuHomePhorge

D25598.1734642255.diff
No OneTemporary

D25598.1734642255.diff

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, 21:04 (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015609
Default Alt Text
D25598.1734642255.diff (773 B)

Event Timeline