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:
parent
c95dcab439
commit
a54a60df36
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue