MDL-62414 tool_dataprivacy: Only show user's children in mydatarequests
authorJun Pataleta <jun@moodle.com>
Sat, 12 May 2018 01:57:22 +0000 (09:57 +0800)
committerJun Pataleta <jun@moodle.com>
Sat, 12 May 2018 02:19:47 +0000 (10:19 +0800)
commitf946d875642473ebf4c6fc738760808121080a1c
treee5eeb3f71b3cf0a807bfc9cbed882cf365ef03da
parent02c7769422633f9b30ece28777e5b6f5a596eb49
MDL-62414 tool_dataprivacy: Only show user's children in mydatarequests

* When coming from the DPO's "My data requests" page, don't show the
  picker for other users (unless the DPO is a parent of another user).
* When creating a data request as a DPO, show a more appropriate
  notification after redirecting back to the data requests page.
admin/tool/dataprivacy/createdatarequest.php
admin/tool/dataprivacy/createdatarequest_form.php
admin/tool/dataprivacy/lang/en/tool_dataprivacy.php