Deleted unnecessary code. Delted has_capility moodle/course:update because I think that the students should be write comments too. Updated on Moodle standard.