Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73006

User agreements are marked as pending when accepted via WebService

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Major Major
    • None
    • 3.11.3
    • Policy, Web Services
    • MOODLE_311_STABLE

      How to reproduce:

      1. As admin, add a new site policy to a site (Site Administration ► Users ► Privacy and policies ► Manage policies ► New policy).
      2. When creating it, mark "Agreement optional" = YES. If I later change this to NO it also happens, but I'm not sure if the bug happens if the policy is created from scratch with this value set to NO.
      3. Enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      4. Create a new user in the site (Site Administration ► Users ► Add a new user).
      5. Create a Token in the mobile app service for the user you just created.
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      6. Open the console an execute this new curl request, replacing wstoken with the token you just created and the site url with yours.

        curl 'http://YOUR_SITE/webservice/rest/server.php?moodlewsrestformat=json' --data 'moodlewssettingfilter=true&moodlewssettingfileurl=true&wsfunction=core_user_agree_site_policy&wstoken=WS_TOKEN'

      1. Check that it returns status: true.
      2. As admin, go to Site Administration ► Users ► Privacy and policies ► User agreements.
      3. Search the user, check that it's still marked as Pending.

            jleyva Juan Leyva
            dpalou Dani Palou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.