2011-05-12 10:06:54 -07:00
|
|
|
<?php
|
|
|
|
|
2012-03-09 15:46:25 -08:00
|
|
|
final class PhabricatorDisabledUserController
|
|
|
|
extends PhabricatorAuthController {
|
2011-05-12 10:06:54 -07:00
|
|
|
|
|
|
|
public function shouldRequireEnabledUser() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-08-01 16:49:27 -07:00
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
|
|
$viewer = $this->getViewer();
|
|
|
|
$id = $request->getURIData('id');
|
|
|
|
|
|
|
|
if (!$viewer->getIsDisabled()) {
|
2011-05-12 10:06:54 -07:00
|
|
|
return new Aphront404Response();
|
|
|
|
}
|
|
|
|
|
2016-03-31 13:45:02 -07:00
|
|
|
return $this->newDialog()
|
2014-09-26 17:40:09 -07:00
|
|
|
->setTitle(pht('Account Disabled'))
|
|
|
|
->addCancelButton('/logout/', pht('Okay'))
|
|
|
|
->appendParagraph(pht('Your account has been disabled.'));
|
2011-05-12 10:06:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|