@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Desactivate subtask when logged out.

Summary: Fixes T9592.

Test Plan: Log out ! Navigates to a task. See the add button grey-ed out !

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Maniphest Tasks: T9592

Differential Revision: https://secure.phabricator.com/D14299

authored by

tycho and committed by
epriestley
0e8ed0c6 92a626fc

+5 -2
+5 -2
src/applications/maniphest/controller/ManiphestTaskDetailController.php
··· 381 381 382 382 private function buildActionView(ManiphestTask $task) { 383 383 $viewer = $this->getRequest()->getUser(); 384 - $viewer_phid = $viewer->getPHID(); 385 384 386 385 $id = $task->getID(); 387 386 $phid = $task->getPHID(); ··· 390 389 $viewer, 391 390 $task, 392 391 PhabricatorPolicyCapability::CAN_EDIT); 392 + 393 + $can_create = $viewer->isLoggedIn(); 393 394 394 395 $view = id(new PhabricatorActionListView()) 395 396 ->setUser($viewer) ··· 417 418 id(new PhabricatorActionView()) 418 419 ->setName(pht('Create Subtask')) 419 420 ->setHref($this->getApplicationURI("/task/create/?parent={$id}")) 420 - ->setIcon('fa-level-down')); 421 + ->setIcon('fa-level-down')) 422 + ->setDisabled(!$can_create) 423 + ->setWorkflow(!$can_create); 421 424 422 425 $view->addAction( 423 426 id(new PhabricatorActionView())