Block editor shortcut actions in read only mode
Expected behaviour
In Ketida 2, permissions have been configured such that if a collaborator only has view access on a book, they can't make changes to content within a component. This is working for the toolbar. We expect that shortcuts to perform related actions also shouldn't work for collaborators with view access.
Current behaviour
Collaborators with view access on a book can hit ctrl or cmd F and find and replace content within a component. Other issues related to keyboard shortcuts may be present as well, but have not yet been identified.
Steps to reproduce
- Create an account on Ketida 2 https://pod.cloud68.co/ (account 1)
- Create another account on Ketida 2 with a different email (account 2)
- From account 1, create a book
- In the editor, go to the Add members modal
- Add account 2 to your team and give them view only access
- In account 2, go to editor in the book
- Hit ctrl F or cmd F on Mac
- See that you can find and replace component's content through this method which shouldn't be the case
Environment
Mac OS