Capabilities/mod/data:comment
From MoodleDocs
- This allows a user to add comments to database activity module entries.
- By default, students are allowed to add comments. If you only want teachers to be able to add comments, you can prevent this capability with a student role override.