Page MenuHomePhorge

D25308.1738152414.diff
No OneTemporary

D25308.1738152414.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
Wed, Jan 29, 12:06 (3 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1153002
Default Alt Text
D25308.1738152414.diff (1 KB)

Event Timeline