Skip to content

Commit

Permalink
Allow editor role in public links for single file
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed Nov 17, 2021
1 parent 099a88c commit 507806c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ export default ({ isFolder = false, $gettext = returnOriginal }) => {
permissions: 4
}
)
} else {
roles.push(
{
name: 'editor',
label: $gettext('Editor'),
description: $gettext('Recipients can view, download and edit the file.'),
permissions: 3
}
)
}
return roles
}
3 changes: 3 additions & 0 deletions packages/web-app-files/src/helpers/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ function _buildLink(link) {
case '15': // read (1) + update (2) + create (4) + delete (8)
description = $gettext('Editor')
break
case '3': // read (1) + update (2) for single files links
description = $gettext('Editor')
break
}

return {
Expand Down

0 comments on commit 507806c

Please sign in to comment.