Don't show edit button for tasks if editing is not allowed
This commit is contained in:
@@ -62,10 +62,13 @@ final class ManiphestTaskListController
|
|||||||
|
|
||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
|
$can_edit = $this->hasApplicationCapability(
|
||||||
|
PhabricatorPolicyCapability::CAN_EDIT);
|
||||||
|
|
||||||
$lists = array();
|
$lists = array();
|
||||||
foreach ($groups as $group => $list) {
|
foreach ($groups as $group => $list) {
|
||||||
$task_list = new ManiphestTaskListView();
|
$task_list = new ManiphestTaskListView();
|
||||||
$task_list->setShowBatchControls(true);
|
$task_list->setShowBatchControls($can_edit);
|
||||||
if ($can_drag) {
|
if ($can_drag) {
|
||||||
$task_list->setShowSubpriorityControls(true);
|
$task_list->setShowSubpriorityControls(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user