-
Bug
-
Resolution: Fixed
-
Minor
-
4.4.5
If a course contains hidden groups and the current user doesn't have permission to view them, then when you edit settings for an activity, the system shows a warning:
PHP Warning: Undefined property: stdClass::$visibility in /var/www/html/moodle/availability/condition/group/classes/frontend.php on line 58
This was introduced in MDL-68093 (Moodle 4.2) when group visibility was added.
Probably nobody has noticed because normally, users who can edit activity settings do have the permission to view hidden groups. (Or I failed to find the existing issue...)