Skip to content

Commit

Permalink
Support the file editor role for public links (#2253)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 authored Nov 10, 2021
1 parent 3fcbf5c commit 24d88d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/publink-links-file-editor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enhancement: Support the file editor role for public links

https://github.com/cs3org/reva/pull/2253
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ func permissionFromRequest(r *http.Request, h *Handler) (*provider.ResourcePermi
var ocPublicPermToRole = map[int]string{
// Recipients can view and download contents.
1: "viewer",
// Recipients can view, download and edit single files.
3: "file-editor",
// Recipients can view, download, edit, delete and upload contents
15: "editor",
// Recipients can upload but existing contents are not revealed
Expand Down

0 comments on commit 24d88d2

Please sign in to comment.