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
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-18 15:06:57 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-09-26 11:45:01 +0300
commitedc54ea5d57e6019a14b9b70b3065c62d6d8953e (patch)
tree929bc4cf215058d5238862d39a07799895f5b125 /appinfo
parentb0daa126657df88e6a26fd437fbf565eba54ebdb (diff)
Add support for public shares to file rooms
Until now file rooms were available only to users with direct access to the file. Now file rooms are available to any user or guest too if the link is publicly shared (with a link share, for example). Public shares are identified by a share token instead of a file id, so a new endpoint, which is a counterpart of FilesController but for share tokens, was added. The file room, however, is still associated to the file id like before. When checking if a participant can join a room if the current user is a user without direct access to the file or a guest it is not even possible to know if the file id belongs to a publicly shared file. Due to this when the room is got for a share token the share token is stored in the session and then used in following requests when checking whether the participant can join a room or not. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index c5fdb5cbb..3290431ab 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -351,6 +351,16 @@ return [
],
/**
+ * PublicShare
+ */
+ [
+ 'name' => 'PublicShare#getRoom',
+ 'url' => '/api/{apiVersion}/publicshare/{shareToken}',
+ 'verb' => 'GET',
+ 'requirements' => ['apiVersion' => 'v1'],
+ ],
+
+ /**
* Guest
*/
[