Page MenuHomePhorge

D25598.1737783728.diff
No OneTemporary

D25598.1737783728.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
Sat, Jan 25, 05:42 (6 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1148402
Default Alt Text
D25598.1737783728.diff (771 B)

Event Timeline