diff options
author | Joas Schilling <coding@schilljs.com> | 2019-04-09 11:28:33 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-04-09 11:28:33 +0200 |
commit | ca0b70eb2f975c9c53d6261c8c595ca440935215 (patch) | |
tree | 28e292a77faa404c6420ccd13d70c4260eb0a349 /lib/private/Server.php | |
parent | 38f8f7cbf4dbfecdb55be8bfcafa4d8b5c7355d4 (diff) | |
download | nextcloud-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.php | 3 |
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; }); |