Merge branch 'MDL-72578-master' of git://github.com/ferranrecio/moodle

This commit is contained in:
abgreeve 2021-10-08 09:12:57 +08:00
commit edb655e35c
28 changed files with 1286 additions and 189 deletions

View file

@ -232,7 +232,8 @@ abstract class info {
* @return bool True if activity is available for all
*/
public function is_available_for_all() {
if (is_null($this->availability)) {
global $CFG;
if (is_null($this->availability) || !empty($CFG->enableavailability)) {
return true;
} else {
try {