Skip to content

Commit

Permalink
swtich from DavPermission exect match to contains match
Browse files Browse the repository at this point in the history
  • Loading branch information
fschade committed Apr 14, 2022
1 parent 1277b92 commit 8fac709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-app-text-editor/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export default {
unref(defaults)
.getFileInfo(filePath, [DavProperty.Permissions])
.then((response) => {
isReadOnly.value = ![DavPermission.Updateable, DavPermission.FileUpdateable].includes(
response.fileInfo[DavProperty.Permissions]
isReadOnly.value = ![DavPermission.Updateable, DavPermission.FileUpdateable].some(
(p) => response.fileInfo[DavProperty.Permissions].indexOf(p) > -1
)
})
Expand Down

0 comments on commit 8fac709

Please sign in to comment.