aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/IHomeStorage.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-08-14 15:50:05 +0200
committerRobin Appelman <robin@icewind.nl>2023-08-14 18:17:27 +0200
commita031bc4788229b7943a13202998e895d08161490 (patch)
treeae541c4c09c7cbcd4391013951424ff3a9435523 /lib/public/Files/IHomeStorage.php
parentdfbc0d8572395c459aa80df5e503b8688e2b7f6f (diff)
downloadnextcloud-server-a031bc4788229b7943a13202998e895d08161490.tar.gz
nextcloud-server-a031bc4788229b7943a13202998e895d08161490.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/Files/IHomeStorage.php')
-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;
}