1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 16:00:59 +01:00

Fix check request event

Summary: Broken since birth.

Test Plan: Used it.

Reviewers: nh, epriestley

Reviewed By: nh

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4602
This commit is contained in:
vrana 2013-01-23 13:44:22 -08:00
parent c95dcab439
commit a54a60df36

View file

@ -79,12 +79,12 @@ abstract class PhabricatorController extends AphrontController {
PhabricatorEventType::TYPE_CONTROLLER_CHECKREQUEST,
array(
'request' => $request,
'controller' => get_class($this),
'controller' => $this,
));
$event->setUser($user);
PhutilEventEngine::dispatchEvent($event);
$checker_controller = $event->getValue('controller');
if ($checker_controller != get_class($this)) {
if ($checker_controller != $this) {
return $this->delegateToController($checker_controller);
}