@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.

Tokens - make action disabled if user not logged in

Summary: ref T2691. These actions should be visually disabled if user not logged in consistently. Tokens was the odd one out, staying active regardless of user status.

Test Plan: viewed a mock logged out and verified "give token" was inactive from a UI-sense

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2691

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

+3
+3
src/applications/tokens/event/PhabricatorTokenUIEventListener.php
··· 54 54 ->setName(pht('Rescind Token')) 55 55 ->setIcon('dislike'); 56 56 } 57 + if (!$user->isLoggedIn()) { 58 + $token_action->setDisabled(true); 59 + } 57 60 58 61 $actions = $event->getValue('actions'); 59 62 $actions[] = $token_action;