Capabilities/mod/data:comment
From MoodleDocs
- This allows a user to add comments to database 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.