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

Add new settings for disabling Mobile app functionalities

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Go to Site administration ►Mobile app ►Mobile features
      3. Disable some of the features (in the Disabled features multiple select field)
      4. Create a WS Token for one standard user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. 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"

      6. Check that you receive correctly the list of features disabled
      Show
      Enable "Mobile services": Plugins ► Web Services ► Mobile Go to Site administration ►Mobile app ►Mobile features Disable some of the features (in the Disabled features multiple select field) Create a WS Token for one standard user: 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 you receive correctly the list of features disabled
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-49423-master

      Description

      We need some settings in Moodle for disabling plugins/features in the app.

      This has been requested several times (including partners). It will be useful on sites with heavy customizations or some features disabled via custom scripts or similar.

      We can add this new settings under Administration > Mobile app > Mobile features

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jleyva Juan Leyva
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Dani Palou
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Ryan Wyllie
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/17