aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-13 17:23:27 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-13 17:23:27 +0100
commit9356f9a6bf6e9bd048e31e787d5fcb621de8eebc (patch)
treec6d32c5a88b2213ea1254bb3d0ec23d020b8a0f4 /lib/public
parent4952dfe95657ba52f1b39f958100659539831ba8 (diff)
downloadnextcloud-server-9356f9a6bf6e9bd048e31e787d5fcb621de8eebc.tar.gz
nextcloud-server-9356f9a6bf6e9bd048e31e787d5fcb621de8eebc.zip
add post_unshareALll hook, update recursively all keyfiles if a folder was shared/unshared
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index f691ae9b39f..d1297c6e59e 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -520,6 +520,11 @@ class Share {
foreach ($shares as $share) {
self::delete($share['id']);
}
+ \OC_Hook::emit('OCP\Share', 'post_unshareAll', array(
+ 'itemType' => $itemType,
+ 'itemSource' => $itemSource,
+ 'shares' => $shares
+ ));
return true;
}
return false;