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 16, 2021
1 parent 9fee508 commit d4c4599
Showing 1 changed file with 9 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
}

0 comments on commit d4c4599

Please sign in to comment.