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

Invalid capability enrol/ldap:config

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Testing difficulty: medium, required LDAP integration

      • Set up LDAP authentication and LDAP enrolment, have debugging mode on.
      • Have at least one user enrolled as a student into at least one course.
      • TEST: Check that the user can enter the course.
      • As an admin/manager, visit the Enrolments methods page for the course.
      • TEST: Check that the reported debugging message is not displayed.
      • TEST: Check that you have access to the hide/show icon and that you can disable the enrolment method.
      • TEST: Check that if the enrolment method is disabled, the student enrolled via it cannot enter the course.
      Show
      Testing difficulty: medium, required LDAP integration Set up LDAP authentication and LDAP enrolment, have debugging mode on. Have at least one user enrolled as a student into at least one course. TEST: Check that the user can enter the course. As an admin/manager, visit the Enrolments methods page for the course. TEST: Check that the reported debugging message is not displayed. TEST: Check that you have access to the hide/show icon and that you can disable the enrolment method. TEST: Check that if the enrolment method is disabled, the student enrolled via it cannot enter the course.
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-58273-master-ldapenrol

      Description

      While testing MDL-57631 I noticed a debugging message

      Capability "enrol/ldap:config" was not found! This has to be fixed in code.
      line 391 of /lib/accesslib.php: call to debugging()
      line 135 of /enrol/ldap/lib.php: call to has_capability()
      line 247 of /enrol/instances.php: call to enrol_ldap_plugin->can_hide_show_instance()
      

      As a consequence, the show/hide icon is not displayed and these enrolments can't be disabled.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Peer reviewer:
              Juan Leyva
              Integrator:
              Dan Poltawski
              Tester:
              cameron1729
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

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