-
Bug
-
Resolution: Fixed
-
Minor
-
2.7.7, 2.8.5
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-49921-master -
In my general external functions review I've noticed that this function does not handle exceptions as expected. I've detected two problematic scenarios:
- The user doesn't have permissions to see one of the specified courses: This will make the function to throw an exception and not return any information
- The user doesn't have permissions to see a forum in a course: This will make the function to throw an exception and not return any information
The function should handle this scenarios and omit the courses where the user doesn't have permissions and check correctly the forum capabilities, it should work like the same functions for assign and data modules.
Note that this makes the mobile app to not be able to display forums in those scenarios.