Enter the course, and click “Settings” from the menu.
Under the section “Appearance”, select the property “Show gradebook to students” as “Yes” for showing the gradebook to students or “No” for hiding the gradebook from students. Click the button “Save and display” to save your settings.