Page MenuHomePhorge

D25308.1739215669.diff
No OneTemporary

D25308.1739215669.diff

diff --git a/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php b/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
--- a/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
+++ b/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
@@ -139,6 +139,7 @@
$edit_uri = urisprintf(
'/dashboard/panel/edit/%d/',
$panel_id);
+
if ($subpanel) {
$can_edit = PhabricatorPolicyFilter::hasCapability(
$viewer,
@@ -181,7 +182,7 @@
->setIcon('fa-chevron-left')
->setHref($prev_uri)
->setWorkflow(true)
- ->setDisabled(($prev_key === null) || !$can_edit));
+ ->setDisabled($prev_key === null));
$dropdown_menu->addAction(
id(new PhabricatorActionView())
@@ -189,7 +190,7 @@
->setIcon('fa-chevron-right')
->setHref($next_uri)
->setWorkflow(true)
- ->setDisabled(($next_key === null) || !$can_edit));
+ ->setDisabled($next_key === null));
$dropdown_menu->addAction(
id(new PhabricatorActionView())

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 10, 19:27 (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1153002
Default Alt Text
D25308.1739215669.diff (1 KB)

Event Timeline