From e39c3ef82502bc33f11c677eb6e7d335d495e1ae Mon Sep 17 00:00:00 2001 From: lkassianik Date: Sun, 26 Apr 2015 12:00:59 -0700 Subject: [PATCH] New diffusion repository rejection should not navigate away from diffusion. Summary: Fixes T7507, Create diffusion repo rejection should not navigate away from diffusion. Test Plan: Login as non-admin, open diffusion, attempt to create new repo, rejection dialog should appear over page instead of navigating to new page. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T7507 Differential Revision: https://secure.phabricator.com/D12557 --- .../diffusion/controller/DiffusionRepositoryListController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/diffusion/controller/DiffusionRepositoryListController.php b/src/applications/diffusion/controller/DiffusionRepositoryListController.php index 8658f0d7f7..ec93edbc41 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryListController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryListController.php @@ -41,6 +41,7 @@ final class DiffusionRepositoryListController extends DiffusionController { ->setName(pht('New Repository')) ->setHref($this->getApplicationURI('new/')) ->setDisabled(!$can_create) + ->setWorkflow(!$can_create) ->setIcon('fa-plus-square')); return $crumbs;