Differential D20407 Diff 48714 src/applications/dashboard/controller/PhabricatorDashboardMovePanelController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/controller/PhabricatorDashboardMovePanelController.php
| Show All 9 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| $column_id = $request->getStr('columnID'); | $column_id = $request->getStr('columnID'); | ||||
| $panel_phid = $request->getStr('objectPHID'); | $panel_phid = $request->getStr('objectPHID'); | ||||
| $after_phid = $request->getStr('afterPHID'); | $after_phid = $request->getStr('afterPHID'); | ||||
| $before_phid = $request->getStr('beforePHID'); | $before_phid = $request->getStr('beforePHID'); | ||||
| $dashboard = id(new PhabricatorDashboardQuery()) | $dashboard = id(new PhabricatorDashboardQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withIDs(array($id)) | ->withIDs(array($id)) | ||||
| ->needPanels(true) | |||||
| ->requireCapabilities( | ->requireCapabilities( | ||||
| array( | array( | ||||
| PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
| PhabricatorPolicyCapability::CAN_EDIT, | PhabricatorPolicyCapability::CAN_EDIT, | ||||
| )) | )) | ||||
| ->executeOne(); | ->executeOne(); | ||||
| if (!$dashboard) { | if (!$dashboard) { | ||||
| return new Aphront404Response(); | return new Aphront404Response(); | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||