Skip to content

Commit 9fa25e8

Browse files
authored
Merge pull request #8474 from nextcloud/backport/8473/stable33
[stable33] fix(files): don't offer "folder description" in file drop folders
2 parents af9f552 + 2bcd0c8 commit 9fa25e8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/helpers/files.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ export const addMenuRichWorkspace = () => {
3636
if (Number(context.attributes['rich-workspace-file'])) {
3737
return false
3838
}
39-
return (context.permissions & Permission.CREATE) !== 0
39+
// Check read permission to not show option in file drop shares
40+
return (
41+
(context.permissions & Permission.READ) !== 0
42+
&& (context.permissions & Permission.CREATE) !== 0
43+
)
4044
},
4145
iconSvgInline: TextSvg,
4246
async handler(context, content) {

0 commit comments

Comments
 (0)