aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-09 11:28:33 +0200
committerJoas Schilling <coding@schilljs.com>2019-04-09 11:28:33 +0200
commitca0b70eb2f975c9c53d6261c8c595ca440935215 (patch)
tree28e292a77faa404c6420ccd13d70c4260eb0a349 /lib/private/Server.php
parent38f8f7cbf4dbfecdb55be8bfcafa4d8b5c7355d4 (diff)
downloadnextcloud-server-ca0b70eb2f975c9c53d6261c8c595ca440935215.tar.gz
nextcloud-server-ca0b70eb2f975c9c53d6261c8c595ca440935215.zip
Remove unnecessary event dispatcher
The event is already triggered in OC\User\User::triggerChange Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 936ce21fa62..aaceac004c0 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -426,10 +426,9 @@ class Server extends ServerContainer implements IServerContainer {
$userSession->listen('\OC\User', 'logout', function () {
\OC_Hook::emit('OC_User', 'logout', array());
});
- $userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) use ($dispatcher) {
+ $userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) {
/** @var $user \OC\User\User */
\OC_Hook::emit('OC_User', 'changeUser', array('run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue));
- $dispatcher->dispatch('OCP\IUser::changeUser', new GenericEvent($user, ['feature' => $feature, 'oldValue' => $oldValue, 'value' => $value]));
});
return $userSession;
});