Skip to content

Commit

Permalink
Merge pull request #307 from nextcloud/fix/allow-read-unlock
Browse files Browse the repository at this point in the history
fix: Show lock status for read only files and allow unlocking
  • Loading branch information
juliusknorr authored May 10, 2024
2 parents 84a0a2d + 3bd8d54 commit a94c659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
return OC.generateUrl(`/avatar/${lockOwner}/32`)
}
},
permissions: OC.PERMISSION_UPDATE,
permissions: OC.PERMISSION_READ,
actionHandler: function () {}
})

Expand All @@ -127,7 +127,7 @@
mime: 'file',
order: -140,
type: OCA.Files.FileActions.TYPE_INLINE,
permissions: OC.PERMISSION_UPDATE,
permissions: OC.PERMISSION_READ,
actionHandler: self.switchLock
})
},
Expand Down

0 comments on commit a94c659

Please sign in to comment.