Skip to content

Commit

Permalink
fixup! Use some instead of every for the permission check
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Nov 8, 2023
1 parent 0b4015b commit 1b77dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (nextcloudVersionIsGreaterThanOr28) {
return false

Check warning on line 40 in src/files-action.js

View check run for this annotation

Codecov / codecov/patch

src/files-action.js#L40

Added line #L40 was not covered by tests
}
const node = nodes[0]

Check warning on line 42 in src/files-action.js

View check run for this annotation

Codecov / codecov/patch

src/files-action.js#L42

Added line #L42 was not covered by tests
return node.mime === mime && (node.permissions & Permission.UPDATE) !== 0
return node.mime === mime && (node.permissions & Permission.READ)
},
iconSvgInline: () => ContactSvg,
async exec(file) {
Expand Down

0 comments on commit 1b77dd7

Please sign in to comment.