summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/app.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-06-08 11:55:16 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-06-08 11:55:16 +0200
commit4d3b7574f3dcab1c79c27e93122dcc7d1ac103b2 (patch)
tree8f9ef6be5ebfa200b83440e777a0e86c87117c9d /apps/files_sharing/appinfo/app.php
parent6a24e8279fbff2e6c10379637676461e72387102 (diff)
downloadnextcloud-server-4d3b7574f3dcab1c79c27e93122dcc7d1ac103b2.tar.gz
nextcloud-server-4d3b7574f3dcab1c79c27e93122dcc7d1ac103b2.zip
Sharing, fix: connect to hooks from the correct classes
Diffstat (limited to 'apps/files_sharing/appinfo/app.php')
-rw-r--r--apps/files_sharing/appinfo/app.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index ea3a9da6f7a..b59c90b8774 100644
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -8,8 +8,8 @@ OCP\Util::connectHook("OC_Filesystem", "post_delete", "OC_Share", "deleteItem");
OCP\Util::connectHook("OC_Filesystem", "post_rename", "OC_Share", "renameItem");
OCP\Util::connectHook("OC_Filesystem", "post_write", "OC_Share", "updateItem");
OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Share', 'removeUser');
-OCP\Util::connectHook('OC_User', 'post_addToGroup', 'OC_Share', 'addToGroupShare');
-OCP\Util::connectHook('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare');
+OCP\Util::connectHook('OC_Group', 'post_addToGroup', 'OC_Share', 'addToGroupShare');
+OCP\Util::connectHook('OC_Group', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare');
$dir = isset($_GET['dir']) ? $_GET['dir'] : '/';
if ($dir != '/Shared' || OCP\Config::getAppValue('files_sharing', 'resharing', 'yes') == 'yes') {
OCP\Util::addscript("files_sharing", "share");