From e9614df76e0b27312f9a0b39847ec36231b2d8a0 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 31 Aug 2015 10:17:37 -0700 Subject: [PATCH] Fix permission check for "Create Task" on workboards Summary: Fixes T9090. You don't need to be able to edit a project to create tasks on its workboard. Being able to view the project is sufficient, and the user certianly can if they got this far. Test Plan: Viewed workboard, hit "Create Task". Reviewers: chad Reviewed By: chad Maniphest Tasks: T9090 Differential Revision: https://secure.phabricator.com/D14015 --- .../controller/PhabricatorProjectBoardViewController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/applications/project/controller/PhabricatorProjectBoardViewController.php b/src/applications/project/controller/PhabricatorProjectBoardViewController.php index 8fd1810f33..077cca9a5f 100644 --- a/src/applications/project/controller/PhabricatorProjectBoardViewController.php +++ b/src/applications/project/controller/PhabricatorProjectBoardViewController.php @@ -624,8 +624,7 @@ final class PhabricatorProjectBoardViewController ->setMetadata( array( 'columnPHID' => $column->getPHID(), - )) - ->setDisabled(!$can_edit); + )); $batch_edit_uri = $request->getRequestURI(); $batch_edit_uri->setQueryParam('batch', $column->getID());