Fix missing capability names
Check for the permission before fetching grades on activity update

In a rare case when the teacher does not have permission to fetch grades
manually, do not fetch grades on the subcourse activity update.