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

Add new options in the tool_mobile/disabledfeatures setting

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.5
    • 3.4.1
    • Administration
    • MOODLE_34_STABLE
    • MOODLE_35_STABLE
    • MDL-61668-master
    • Hide
      1. Enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Create a WS Token for one user on the site:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      3. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool"

      4. Check that in the WS response the tool_mobile_disabledfeatures value is empty
      5. Go to Site administration ►Mobile app ►Mobile features - Disabled features
      6. Disable the "Download course" and "Download courses" under the Course section features by selecting the two of them, disable also "Offline use" (the first option) and click "Save changes"
      7. Execute again the same curl Request
      8. Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see listed the two features your disabled (NoDelegate_CoreOffline, NoDelegate_CoreCourseDownload and NoDelegate_CoreCoursesDownload)
      9. Now, execute the following curl request but this time only changing the URL of your Moodle instance

        curl 'http://localhost/m/stable_master/lib/ajax/service.php?sesskey=pEz3ihR1lC' --data-binary '[{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}]' | python -m "json.tool"

      10. Check that you also see the tool_mobile_disabledfeatures field with the same value than the previous request.
      Show
      Enable "Mobile services": Plugins ► Web Services ► Mobile Create a WS Token for one user on the site: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken, and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool" Check that in the WS response the tool_mobile_disabledfeatures value is empty Go to Site administration ►Mobile app ►Mobile features - Disabled features Disable the "Download course" and "Download courses" under the Course section features by selecting the two of them, disable also "Offline use" (the first option) and click "Save changes" Execute again the same curl Request Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see listed the two features your disabled (NoDelegate_CoreOffline, NoDelegate_CoreCourseDownload and NoDelegate_CoreCoursesDownload) Now, execute the following curl request but this time only changing the URL of your Moodle instance curl 'http://localhost/m/stable_master/lib/ajax/service.php?sesskey=pEz3ihR1lC' --data-binary ' [{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}] ' | python -m "json.tool" Check that you also see the tool_mobile_disabledfeatures field with the same value than the previous request.

      This was requested by partners, via the tracker and via the forum, we should include a new couple of options in the existing "Disable features" in tool Mobile to enable admins to disable:

      • Download course
      • Download all courses

      Disabling this option will make the app to not show the Download courses or Download course links.

      This is interesting for admins wanting to prevent massive course downloads or individual course download (for privacy / security reasons).

            jleyva Juan Leyva
            jleyva Juan Leyva
            Carlos Escobedo Carlos Escobedo
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m

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