mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
fix missing 'this' in hooks
copy paste otherwise creates error 500
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user