Link shares to the user, not the collective

The user is required when searching because of folders (sadly), so the
share is connected to the user.
This commit is contained in:
eikek
2021-10-23 23:29:36 +02:00
parent 9009ebcb39
commit 2ac0b84e52
17 changed files with 268 additions and 110 deletions

View File

@ -1932,6 +1932,9 @@ paths:
Return a list of all shares for this collective.
security:
- authTokenHeader: []
parameters:
- $ref: "#/components/parameters/q"
- $ref: "#/components/parameters/owningShare"
responses:
200:
description: Ok
@ -4496,6 +4499,7 @@ components:
required:
- id
- query
- owner
- enabled
- publishAt
- publishUntil
@ -4509,6 +4513,8 @@ components:
query:
type: string
format: itemquery
owner:
$ref: "#/components/schemas/IdName"
name:
type: string
enabled:
@ -6805,6 +6811,13 @@ components:
required: false
schema:
type: boolean
owningShare:
name: owning
in: query
description: Return my own shares only
required: false
schema:
type: boolean
checksum:
name: checksum
in: path