DigiDago / moodle-format_softcourse

A course format for Moodle. This course format displays sections with only an image and an optional text on the course homepage. Users don’t see the detail of the section, for instance, resources or activities.
https://pimenko.com
1 stars 4 forks source link

Section with restricted access, or with only restricted access activities, is visible to Students even students dont meet the conditions #79

Closed m1nhhanh closed 3 years ago

m1nhhanh commented 3 years ago

Subject of the issue/enhancement/features

  1. Section with restricted access is visible to Student.
  2. Shown section with only restricted access activities is visible to Student.

Steps to reproduce

  1. As Admin/Course manager, set a restricted access to a section A
  2. As Admin/Course manager, ad a restricted access activity to the section B (available and shown) View the course page with Student role, Students can see section A and section B

Expected behaviour

Section is invisible to students if they dont meet the setting conditions of section or activities in the section. OR Have sections grayed out and unclickable. When access restriction criteria is met and sectiion opens to student, then the section would become clickable and be displayed in standard UI style. Admin is recommended to put conditions in section description so it can be shown on below section name.

Actual behaviour

Students can see the section access, when they click on

  1. the section A, they get the error message "Sorry, this activity is currently hidden"
  2. the section B, they get the error message "'name of activity' - Not available unless: 'conditions'"

Screenshots (if you can)