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

Add new "Disabled feature" within Mobile app settings for the new "Contact site support" feature introduced in app v4.1

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.1, 4.1
    • 4.1
    • Other
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-75099-master
    • Hide

      Test

      1. Go to Site administration ► Advanced feature and enable "Enable web services for mobile devices"
      2. Create a WS Token for one user on the site:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      3. Go to Site administration ►Mobile app ►Mobile features - Disabled features option
      4. Select the "Contact site support" option under the Mobile features section
      5. Next, you can do a CURL REST call simulating a WS client with the user token.
      6. You need to replace the $wstoken and the MOODLE_URL of your moodle instance

        curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=$wstoken' --compressed | python -m json.tool

      1. Check that in the WS response, in the "tool_mobile_disabledfeatures" value field, you see the following value: "NoDelegate_CoreUserSupport"
      2. Now, go back to Site administration ►Mobile app ►Mobile features - Disabled features option, and deselect the "Contact site support" option under the Mobile features section
      3. Execute the CURL request again and check that the "tool_mobile_disabledfeatures" value is empty
      Show
      Test Go to Site administration ► Advanced feature and enable "Enable web services for mobile devices" Create a WS Token for one user on the site: Click on Site administration ► Plugins ► Web services ► Manage tokens Go to Site administration ►Mobile app ►Mobile features - Disabled features option Select the "Contact site support" option under the Mobile features section Next, you can do a CURL REST call simulating a WS client with the user token. You need to replace the $wstoken and the MOODLE_URL of your moodle instance curl ' MOODLE_URL /webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken= $wstoken ' --compressed | python -m json.tool Check that in the WS response, in the " tool_mobile_disabledfeatures " value field, you see the following value: " NoDelegate_CoreUserSupport " Now, go back to Site administration ►Mobile app ►Mobile features - Disabled features option, and deselect the "Contact site support" option under the Mobile features section Execute the CURL request again and check that the " tool_mobile_disabledfeatures " value is empty

    Description

      We should allow site admins to disable the option to "contact site support" within the app

      Attachments

        Issue Links

          Activity

            People

              rodrigo.mady@moodle.com Rodrigo Mady
              jleyva Juan Leyva
              Noel De Martin Noel De Martin
              Jun Pataleta Jun Pataleta
              John Edward Pedregosa John Edward Pedregosa
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                28/Nov/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 41 minutes
                  1h 41m