diff --git a/changelog/unreleased/publink-links-file-editor.md b/changelog/unreleased/publink-links-file-editor.md new file mode 100644 index 0000000000..0da2442a9b --- /dev/null +++ b/changelog/unreleased/publink-links-file-editor.md @@ -0,0 +1,3 @@ +Enhancement: Support the file editor role for public links + +https://github.com/cs3org/reva/pull/2253 \ No newline at end of file diff --git a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go index 5e5115e23e..08caebdddf 100644 --- a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go +++ b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go @@ -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