aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-04-11 12:36:08 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-04-11 14:39:56 +0200
commit544a46c69067fcbdf55391415c9d06c73fd21331 (patch)
tree531902325d009be7e8b56881e13fe2441913671c /apps/files_versions/appinfo
parent18c873d1e5746bd0e032c9c6e402da487fa9634a (diff)
downloadnextcloud-server-544a46c69067fcbdf55391415c9d06c73fd21331.tar.gz
nextcloud-server-544a46c69067fcbdf55391415c9d06c73fd21331.zip
remove used space for versions from db is a user was deleted
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r--apps/files_versions/appinfo/app.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_versions/appinfo/app.php b/apps/files_versions/appinfo/app.php
index 9be1c889682..0d0850e1864 100644
--- a/apps/files_versions/appinfo/app.php
+++ b/apps/files_versions/appinfo/app.php
@@ -12,3 +12,5 @@ OCP\Util::connectHook('OC_Filesystem', 'write', "OCA\Files_Versions\Hooks", "wri
// Listen to delete and rename signals
OCP\Util::connectHook('OC_Filesystem', 'post_delete', "OCA\Files_Versions\Hooks", "remove_hook");
OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA\Files_Versions\Hooks", "rename_hook");
+//Listen to delete user signal
+OCP\Util::connectHook('OC_User', 'pre_deleteUser', "OCA\Files_Versions\Hooks", "deleteUser_hook");