diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-07 17:14:54 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-06 15:02:22 +0200 |
commit | d546c5bb593193e2f3083cde3b3afa8b0fc7c209 (patch) | |
tree | 342ad6ac504dcff9f2ffc634d806939912364a49 /apps/files_sharing/appinfo | |
parent | 191f1b2d49afe980f43bdf6c0cc2c8cbb7f88c91 (diff) | |
download | nextcloud-server-d546c5bb593193e2f3083cde3b3afa8b0fc7c209.tar.gz nextcloud-server-d546c5bb593193e2f3083cde3b3afa8b0fc7c209.zip |
Propagate shares etag when group membership changed
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/application.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/application.php b/apps/files_sharing/appinfo/application.php index 10e3fdae982..9587d74f160 100644 --- a/apps/files_sharing/appinfo/application.php +++ b/apps/files_sharing/appinfo/application.php @@ -27,6 +27,7 @@ namespace OCA\Files_Sharing\AppInfo; use OCA\Files_Sharing\Helper; use OCA\Files_Sharing\MountProvider; use OCA\Files_Sharing\Propagation\PropagationManager; +use OCA\Files_Sharing\Propagation\GroupPropagationManager; use OCP\AppFramework\App; use OC\AppFramework\Utility\SimpleContainer; use OCA\Files_Sharing\Controllers\ExternalSharesController; @@ -128,6 +129,16 @@ class Application extends App { ); }); + $container->registerService('GroupPropagationManager', function (IContainer $c) { + /** @var \OCP\IServerContainer $server */ + $server = $c->query('ServerContainer'); + return new GroupPropagationManager( + $server->getUserSession(), + $server->getGroupManager(), + $c->query('PropagationManager') + ); + }); + /* * Register capabilities */ @@ -144,5 +155,7 @@ class Application extends App { public function setupPropagation() { $propagationManager = $this->getContainer()->query('PropagationManager'); \OCP\Util::connectHook('OC_Filesystem', 'setup', $propagationManager, 'globalSetup'); + + $this->getContainer()->query('GroupPropagationManager')->globalSetup(); } } |