Better error handling of Commenting on Posts from groups
You can write out a comment on the front end and then the comment will be rejected with a vague error message after you wrote the comment. This is not good UX. There should be an error before you start writing a comment when you don't have permission to comment.
- Put a permission check hook when the button to comment is clicked or when the comment field gets focus.
- Provide a better error message when permission is denied, explaining they have to join the group.