MDL-73683 core_courseformat: match hasRestrictions criteria
commitd8b8f9bc3bbfff2d9f1ace45132c6c1f60df1858
authorFerran Recio <ferran@moodle.com>
Fri, 18 Feb 2022 11:14:04 +0000 (18 12:14 +0100)
committerFerran Recio <ferran@moodle.com>
Fri, 18 Feb 2022 11:51:15 +0000 (18 12:51 +0100)
treed0ffadeeeb347eec8135b3bfa4e32eb263d59142
parentd7d154bd8b376590a6ccaa6aefc2fd0ec7fd61ea
MDL-73683 core_courseformat: match hasRestrictions criteria

Orignally, the lock icon in the course index and the course content
represents different things and it was confusing for users. Now both
section and cm state data calculate the hasRestrictions attribute the
same way as the course content lock icons.
18 files changed:
course/amd/build/actions.min.js
course/amd/build/actions.min.js.map
course/amd/src/actions.js
course/format/amd/build/local/courseindex/cm.min.js
course/format/amd/build/local/courseindex/cm.min.js.map
course/format/amd/build/local/courseindex/section.min.js
course/format/amd/build/local/courseindex/section.min.js.map
course/format/amd/src/local/courseindex/cm.js
course/format/amd/src/local/courseindex/section.js
course/format/classes/output/local/state/cm.php
course/format/classes/output/local/state/section.php
course/format/templates/local/courseindex/cm.mustache
course/format/templates/local/courseindex/section.mustache
course/format/tests/output/local/state/cm_test.php
course/format/tests/output/local/state/section_test.php
theme/boost/scss/moodle/courseindex.scss
theme/boost/style/moodle.css
theme/classic/style/moodle.css