getRequest(); $user = $request->getUser(); if (!$user->getIsDisabled()) { return new Aphront404Response(); } $failure_view = new AphrontRequestFailureView(); $failure_view->setHeader('Account Disabled'); $failure_view->appendChild('
Your account has been disabled.
'); return $this->buildStandardPageResponse( $failure_view, array( 'title' => 'Account Disabled', )); } }