@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<?php
2
3final class PhabricatorDisabledUserController
4 extends PhabricatorAuthController {
5
6 public function shouldRequireEnabledUser() {
7 return false;
8 }
9
10 public function handleRequest(AphrontRequest $request) {
11 $viewer = $this->getViewer();
12 $id = $request->getURIData('id');
13
14 if (!$viewer->getIsDisabled()) {
15 return new Aphront404Response();
16 }
17
18 return $this->newDialog()
19 ->setTitle(pht('Account Disabled'))
20 ->addCancelButton('/logout/', pht('Okay'))
21 ->appendParagraph(pht('Your account has been disabled.'));
22 }
23
24}