diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-04-30 13:46:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 13:46:13 +0200 |
commit | 0f9b88c5a9a70cc36d0b1f345882301441aed02a (patch) | |
tree | e547b49484c202eae073f764d09122324e3bd7b1 /apps/dav/appinfo | |
parent | 5b5550dbbaa16f29582f630c7e7a8146daa3c76f (diff) | |
parent | bc66bdc0725f51c3ff119e2fc852fccbc6c692aa (diff) | |
download | nextcloud-server-0f9b88c5a9a70cc36d0b1f345882301441aed02a.tar.gz nextcloud-server-0f9b88c5a9a70cc36d0b1f345882301441aed02a.zip |
Merge pull request #20718 from nextcloud/fix/public_share_owner_activity_mess
Add a wrapper to fall back to the share owner on public shares
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/v1/publicwebdav.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php index c50bc134131..556dd35de58 100644 --- a/apps/dav/appinfo/v1/publicwebdav.php +++ b/apps/dav/appinfo/v1/publicwebdav.php @@ -82,7 +82,9 @@ $server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, funct \OC\Files\Filesystem::addStorageWrapper('sharePermissions', function ($mountPoint, $storage) use ($share) { return new \OC\Files\Storage\Wrapper\PermissionsMask(['storage' => $storage, 'mask' => $share->getPermissions() | \OCP\Constants::PERMISSION_SHARE]); }); - + \OC\Files\Filesystem::addStorageWrapper('shareOwner', function ($mountPoint, $storage) use ($share) { + return new \OCA\DAV\Storage\PublicOwnerWrapper(['storage' => $storage, 'owner' => $share->getShareOwner()]); + }); \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($previousLog); OC_Util::tearDownFS(); |