mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
362ae1b443
The idea of the patch is to check the list of policies that are shown before and on the consent page. If that list contains a policy that is supposed to be accepted on its own page, the existing flow is interrupted and the user is redirected to a view.php to display that particular policy. The view template for such a policy contains a button for getting the user agreement. When pressed, the policy is marked as accepted and we can go to start again. To make this working during the signup, we need to extend the existing logic and start tracking which particular policies the visitor accepted prior reaching the signup form. Similarly, we need to start track which particular policies were displayed and use that list when evaluating which policies were unchecked on the consent page.