diff --git a/src/applications/tokens/event/PhabricatorTokenUIEventListener.php b/src/applications/tokens/event/PhabricatorTokenUIEventListener.php index ec4c9e08f7..a55ac4eb59 100644 --- a/src/applications/tokens/event/PhabricatorTokenUIEventListener.php +++ b/src/applications/tokens/event/PhabricatorTokenUIEventListener.php @@ -54,6 +54,9 @@ final class PhabricatorTokenUIEventListener ->setName(pht('Rescind Token')) ->setIcon('dislike'); } + if (!$user->isLoggedIn()) { + $token_action->setDisabled(true); + } $actions = $event->getValue('actions'); $actions[] = $token_action;