-
Bug
-
Resolution: Fixed
-
Minor
-
4.3.4, 4.4
-
6
-
Team Hedgehog 2024 Sprint 2.1, Team Hedgehog 2024 Sprint 2.2, Team Hedgehog 2024 Sprint 2.3
When we remove a role (Example: Teacher) out of a user in a course. Moodle will mark that user as dirty. All the permissions of that user need to be reloaded.
It's okay via UI or a single run of scheduled tasks or ad-hoc tasks.
But if the scheduled task or ad-hoc task is triggered via the keep-alive instance, the permissions are not reloaded
The has_capability() method will return the old data of that user.
I have attached a sample code to demonstrate the bug.