summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-08-14 15:50:05 +0200
committerRobin Appelman <robin@icewind.nl>2023-09-04 14:09:41 +0200
commit8511fb91caa8bd1dcf753fd67141ff4188ae8f64 (patch)
treeb14e3b8ccb23e0fb0ec6ba8ec9dda122b1ba419b /lib/public
parent09fd427df1e3cb6b1c41b7b1efabcd15b9da4118 (diff)
downloadnextcloud-server-8511fb91caa8bd1dcf753fd67141ff4188ae8f64.tar.gz
nextcloud-server-8511fb91caa8bd1dcf753fd67141ff4188ae8f64.zip
more share permission logic to storage wrapper
this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/IHomeStorage.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/Files/IHomeStorage.php b/lib/public/Files/IHomeStorage.php
index 7eb3ffc4a24..1fea80f2d87 100644
--- a/lib/public/Files/IHomeStorage.php
+++ b/lib/public/Files/IHomeStorage.php
@@ -27,6 +27,7 @@
namespace OCP\Files;
use OCP\Files\Storage\IStorage;
+use OCP\IUser;
/**
* Interface IHomeStorage
@@ -34,4 +35,11 @@ use OCP\Files\Storage\IStorage;
* @since 7.0.0
*/
interface IHomeStorage extends IStorage {
+ /**
+ * Get the user for this home storage
+ *
+ * @return IUser
+ * @since 28.0.0
+ */
+ public function getUser(): IUser;
}