1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-04-05 17:08:27 +02: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, PhabricatorEventType::TYPE_CONTROLLER_CHECKREQUEST,
array( array(
'request' => $request, 'request' => $request,
'controller' => get_class($this), 'controller' => $this,
)); ));
$event->setUser($user); $event->setUser($user);
PhutilEventEngine::dispatchEvent($event); PhutilEventEngine::dispatchEvent($event);
$checker_controller = $event->getValue('controller'); $checker_controller = $event->getValue('controller');
if ($checker_controller != get_class($this)) { if ($checker_controller != $this) {
return $this->delegateToController($checker_controller); return $this->delegateToController($checker_controller);
} }