Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-11-24 12:13:30 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-11-24 20:59:54 +0300
commit630e2f4acb89b90c6ba718d240b4f0a92dce317a (patch)
tree54d0addab7926a39af8a1d6c8b084d36bcc43643 /docs
parent88aa97a5f90cad4f74d0a986f5f1dc1aba4f3c8d (diff)
Fix owner being able to add more users to a password request room
Only the owner and another participant will be allowed to join a password request room, so there is no point in being able to add more participants to those rooms. Although throwing the exception in the listener is enough to prevent adding the participants unhandled exceptions in the endpoint are returned as error 404, but the expected error would be 400. To minimize conflicts with other pull requests and backports it is explicitly checked if the room is a password request room instead of refactoring the code to handle the exception. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/participant.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/participant.md b/docs/participant.md
index 8b149ff19..366373c2b 100644
--- a/docs/participant.md
+++ b/docs/participant.md
@@ -53,7 +53,7 @@
- Status code:
+ `200 OK`
+ `400 Bad Request` When the source type is unknown, currently `users`, `groups`, `emails` are supported. `circles` are supported with `circles-support` capability
- + `400 Bad Request` When the conversation is a one-to-one conversation
+ + `400 Bad Request` When the conversation is a one-to-one conversation or a conversation to request a password for a share
+ `403 Forbidden` When the current user is not a moderator or owner
+ `404 Not Found` When the conversation could not be found for the participant
+ `404 Not Found` When the user or group to add could not be found