-
Bug
-
Resolution: Fixed
-
Minor
-
4.2.7, 4.4
-
2
availability_group/condition method is_available works incorrectly when $userid is different from global $USER->id
After recent change (MDL-79174 , commit 238ea3d1a39e08970ebbf3e4825dfc7341f2c1c7), the method for retrieving user groups was altered. Currently, it fetches the groups for the global $USER instead of the user for which we intend to check.
We encountered this behavior in the plugin:
Bug report
I checked with Moodle 4.4+ (Build: 20240503) but other versions are effected too.