This allows the share URI to be regenerated.
Signed-off-by: Adam Serbinski <adam@serbinski.com>
}
$qb = $this->dbConnection->getQueryBuilder();
- $qb->select('share_with', 'file_source')
+ $qb->select('share_with', 'file_source', 'token')
->from('share')
->where($qb->expr()->eq('share_type', $qb->createNamedParameter(IShare::TYPE_EMAIL)))
->andWhere($qb->expr()->in('file_source', $qb->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY)))
$mail[] = $row['share_with'];
} else {
$mail[$row['share_with']] = [
- 'node_id' => $row['file_source']
+ 'node_id' => $row['file_source'],
+ 'token' => $row['token']
];
}
}
* ],
* public => bool
* mail => [
- * 'email1@maildomain1' => ['node_id' => 42],
- * 'email2@maildomain2' => ['node_id' => 23],
+ * 'email1@maildomain1' => ['node_id' => 42, 'token' => 'aBcDeFg'],
+ * 'email2@maildomain2' => ['node_id' => 23, 'token' => 'hIjKlMn'],
* ]
* ]
*
* |-folder2 (32)
* |-fileA (42)
*
- * fileA is shared with user1 and user1@server1 email1@maildomain1
+ * fileA is shared with user1 and user1@server1 and 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
* ],
* public => bool
* mail => [
- * 'email1@maildomain1' => ['node_id' => 42],
- * 'email2@maildomain2' => ['node_id' => 23],
- * ]
+ * 'email1@maildomain1' => ['node_id' => 42, 'token' => 'aBcDeFg'],
+ * 'email2@maildomain2' => ['node_id' => 23, 'token' => 'hIjKlMn'],
+ * ]
*
* The access list to '/folder1/folder2/fileA' **without** $currentAccess is:
* [