Can view attachts in shared notes as long also share the files.

This commit is contained in:
Matias De lellis
2020-06-16 11:58:47 -03:00
parent 8f88f88dcb
commit f46b5ca651
5 changed files with 32 additions and 16 deletions

View File

@@ -73,8 +73,7 @@ class AttachMapper extends QBMapper {
* @param string $userId
* @param int $noteId
* @throws \OCP\AppFramework\Db\DoesNotExistException if not found
* @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result
* @return Note[]
* @return Attach[]
*/
public function findFromNote($userId, $noteId) {
$qb = $this->db->getQueryBuilder();
@@ -86,4 +85,5 @@ class AttachMapper extends QBMapper {
);
return $this->findEntities($qb);
}
}