fix missing 'this' in hooks

copy paste otherwise creates error 500
This commit is contained in:
wetsixteen
2016-03-05 17:33:00 +01:00
parent f93ef43e0a
commit 7b9906d614

View File

@@ -61,7 +61,7 @@ The hook logic should be in a separate class that is being registered in the :do
$callback = function($user) {
// your code that executes before $user is deleted
};
$userManager->listen('\OC\User', 'preDelete', $callback);
$this->userManager->listen('\OC\User', 'preDelete', $callback);
}
}