Steps to reproduce:
- Add a user (site member)
- Add a document
- Share a document with user (View only), making sure Allow the document to be shared with other users. is checked
- Log in as site member
- Go to the sharing modal for the document
Expected result:
User is only able to share document with View permissions. The other two options are disabled.
Actual result:
User can choose between View and Comments permissions to share.
Reproduced on:
Tomcat 9.0.17 + MySQL 5.7.
Portal master 8686a0769e574ca304d9662f04a484a3976b4462