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

Required capability should be displayed when selecting ws function and creating token

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Web Services
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Steps are exactly as per overview, but some points:

      • logged in as administrator throughout
        1. Web services enabled
        2. enabled xmlrpc
        3. User account 'webservice' created
        4. Created a role 'xmlrpc' and added (only) webservice/xmlrpc:use and webservice:createtoken
        5/6/7: created a service, added some functions and specified ALL users
        8: Attempted to create a token for 'webservice' user... "The user hasn't the required capability to use this service"

      It does work if the admin user is selected so it appears that some additional capabilties are required that are not mentioned in the Overview notes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              howardsmiller Howard Miller
              Tester:
              Nobody
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10