diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-04-05 17:05:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 17:05:57 +0200 |
commit | 0cdf03b7334d7f7a3b23b905ea17f2cc0328a5d1 (patch) | |
tree | c109a4c10865ccf8d744d17ecbf45037ff630b65 /apps/files_versions | |
parent | 40f6f602324e663b2e41dd4d7b5b947e55f4077b (diff) | |
parent | d5953e5c33be1a2d8341101c67e4b40cb95b0c7f (diff) | |
download | nextcloud-server-0cdf03b7334d7f7a3b23b905ea17f2cc0328a5d1.tar.gz nextcloud-server-0cdf03b7334d7f7a3b23b905ea17f2cc0328a5d1.zip |
Merge pull request #31773 from nextcloud/share-limited-owner-setup
Perform a limited filesystem setup when getting share source
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/Storage.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php index a6674ab244b..3f91e32ef95 100644 --- a/apps/files_versions/lib/Storage.php +++ b/apps/files_versions/lib/Storage.php @@ -543,9 +543,10 @@ class Storage { }); foreach ($versions as $version) { - \OC_Hook::emit('\OCP\Versions', 'preDelete', ['path' => $version->getInternalPath(), 'trigger' => self::DELETE_TRIGGER_RETENTION_CONSTRAINT]); + $internalPath = $version->getInternalPath(); + \OC_Hook::emit('\OCP\Versions', 'preDelete', ['path' => $internalPath, 'trigger' => self::DELETE_TRIGGER_RETENTION_CONSTRAINT]); $version->delete(); - \OC_Hook::emit('\OCP\Versions', 'delete', ['path' => $version->getInternalPath(), 'trigger' => self::DELETE_TRIGGER_RETENTION_CONSTRAINT]); + \OC_Hook::emit('\OCP\Versions', 'delete', ['path' => $internalPath, 'trigger' => self::DELETE_TRIGGER_RETENTION_CONSTRAINT]); } } |