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:
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,
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue