Skip to content

Commit

Permalink
Merge pull request #39260 from nextcloud/backports/39146/stable26
Browse files Browse the repository at this point in the history
[stable26] fix(files_sharing): hide download permission for circle shares
  • Loading branch information
blizzz authored Jul 10, 2023
2 parents 1c59a7a + 0c09c34 commit ce036dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions apps/files_sharing/src/components/SharingEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,12 @@ export default {
* @return {boolean}
*/
isSetDownloadButtonVisible() {
// TODO: Implement download permission for circle shares instead of hiding the option.
// https://github.com/nextcloud/server/issues/39161
if (this.share && this.share.type === this.SHARE_TYPES.SHARE_TYPE_CIRCLE) {
return false
}

const allowedMimetypes = [
// Office documents
'application/msword',
Expand Down
4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.

0 comments on commit ce036dc

Please sign in to comment.