Development talk:Roles
From MoodleDocs
The list of capabilities for some activities should include viewing as a separate capability since it is a distinct action from editing or taking part, for example
choice_canviewresults
Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Roles.
The list of capabilities for some activities should include viewing as a separate capability since it is a distinct action from editing or taking part, for example
choice_canviewresults