summaryrefslogtreecommitdiffstats
path: root/lib/private/Lockdown
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-03-08 19:27:39 +0100
committerRobin Appelman <robin@icewind.nl>2021-03-12 17:22:43 +0100
commitc2fc3195dd67d523db897ed04657a40f9b19cc8a (patch)
tree1f580ac78b0c02bba46fcf5306544b95768b05e2 /lib/private/Lockdown
parentad636ae12d0bba90979b05b5106959244d3ba256 (diff)
downloadnextcloud-server-c2fc3195dd67d523db897ed04657a40f9b19cc8a.tar.gz
nextcloud-server-c2fc3195dd67d523db897ed04657a40f9b19cc8a.zip
also implement for FailedCache and NullCache
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Lockdown')
-rw-r--r--lib/private/Lockdown/Filesystem/NullCache.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Lockdown/Filesystem/NullCache.php b/lib/private/Lockdown/Filesystem/NullCache.php
index 396bf68d5df..267b76ab8fb 100644
--- a/lib/private/Lockdown/Filesystem/NullCache.php
+++ b/lib/private/Lockdown/Filesystem/NullCache.php
@@ -26,6 +26,7 @@ namespace OC\Lockdown\Filesystem;
use OC\Files\Cache\CacheEntry;
use OCP\Constants;
use OCP\Files\Cache\ICache;
+use OCP\Files\Cache\ICacheEntry;
use OCP\Files\FileInfo;
use OCP\Files\Search\ISearchQuery;
@@ -122,4 +123,8 @@ class NullCache implements ICache {
public function normalize($path) {
return $path;
}
+
+ public function copyFromCache(ICache $sourceCache, ICacheEntry $sourceEntry, string $targetPath): int {
+ throw new \OC\ForbiddenException('This request is not allowed to access the filesystem');
+ }
}