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
This commit is contained in:
@@ -624,8 +624,7 @@ final class PhabricatorProjectBoardViewController
|
|||||||
->setMetadata(
|
->setMetadata(
|
||||||
array(
|
array(
|
||||||
'columnPHID' => $column->getPHID(),
|
'columnPHID' => $column->getPHID(),
|
||||||
))
|
));
|
||||||
->setDisabled(!$can_edit);
|
|
||||||
|
|
||||||
$batch_edit_uri = $request->getRequestURI();
|
$batch_edit_uri = $request->getRequestURI();
|
||||||
$batch_edit_uri->setQueryParam('batch', $column->getID());
|
$batch_edit_uri->setQueryParam('batch', $column->getID());
|
||||||
|
|||||||
Reference in New Issue
Block a user