aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Share
diff options
context:
space:
mode:
authorAdam Serbinski <adam@serbinski.com>2022-05-27 10:40:54 -0400
committerAdam Serbinski <37986043+ASerbinski@users.noreply.github.com>2024-03-21 18:25:31 -0400
commit26ae5e6dfbdd482e6fbfe1cd6a1161ff39f984cc (patch)
tree5767cefae65ec46a956e318bddb8215fc66fa755 /lib/public/Share
parent5ca6249f42d3e7cfde1857d2973283d4eec824e8 (diff)
downloadnextcloud-server-26ae5e6dfbdd482e6fbfe1cd6a1161ff39f984cc.tar.gz
nextcloud-server-26ae5e6dfbdd482e6fbfe1cd6a1161ff39f984cc.zip
ShareByMailProvider: getAccessList: return full list of recipients
Previously was returning only boolean true if the Node was shared by email, or false if not. Now provides an array containing the list of email share recipients. Signed-off-by: Adam Serbinski <adam@serbinski.com>
Diffstat (limited to 'lib/public/Share')
-rw-r--r--lib/public/Share/IManager.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php
index 07517dd7eb5..18c429e1cec 100644
--- a/lib/public/Share/IManager.php
+++ b/lib/public/Share/IManager.php
@@ -256,9 +256,10 @@ interface IManager {
* |-folder2 (32)
* |-fileA (42)
*
- * fileA is shared with user1 and user1@server1
+ * fileA is shared with user1 and user1@server1 email1@maildomain1
* folder2 is shared with group2 (user4 is a member of group2)
* folder1 is shared with user2 (renamed to "folder (1)") and user2@server2
+ * and email2@maildomain2
*
* Then the access list to '/folder1/folder2/fileA' with $currentAccess is:
* [
@@ -272,7 +273,9 @@ interface IManager {
* 'user2@server2' => ['node_id' => 23, 'token' => 'FooBaR'],
* ],
* public => bool
- * mail => bool
+ * mail => [
+ * 'email1@maildomain1' => ['node_id' => 42],
+ * 'email2@maildomain2' => ['node_id' => 23],
* ]
*
* The access list to '/folder1/folder2/fileA' **without** $currentAccess is:
@@ -280,7 +283,7 @@ interface IManager {
* users => ['user1', 'user2', 'user4'],
* remote => bool,
* public => bool
- * mail => bool
+ * mail => ['email1@maildomain1', 'email2@maildomain2']
* ]
*
* This is required for encryption/activity