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

Invalid capability enrol/ldap:config

XMLWordPrintable

    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MDL-58273-master-ldapenrol
    • 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.

      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.

            mudrd8mz David Mudrák (@mudrd8mz)
            mudrd8mz David Mudrák (@mudrd8mz)
            Juan Leyva Juan Leyva
            Dan Poltawski Dan Poltawski
            cameron1729 cameron1729
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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