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

Require 'enrol/PLUGIN:config' capabilities to show/hide enrollment instances

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. For each standard enrol plugin:
      1. Accessing as admin:
        1. Create a course A
        2. Add the current enrol plugin and configure it accordingly
      2. Accessing as teacher
        1. Go to enrolment methods page
        2. You should have access to icons
      3. Open another browser as admin and remove the "enrol/PLUGIN:config" capability from teacher role
      4. Go back to the browser you are logged as teacher
        1. Check that you can not enable/disable an enrolment instance by clicking on the icons (opening in new tab)
        2. Refresh the page and ensure the icons are not visible.
      Show
      For each standard enrol plugin: Accessing as admin: Create a course A Add the current enrol plugin and configure it accordingly Accessing as teacher Go to enrolment methods page You should have access to icons Open another browser as admin and remove the "enrol/PLUGIN:config" capability from teacher role Go back to the browser you are logged as teacher Check that you can not enable/disable an enrolment instance by clicking on the icons (opening in new tab) Refresh the page and ensure the icons are not visible.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:

      Description

      Was the original intention of MDL-35864 - but the issue seemed to morph into just deleting enrol instances.

      In the same way - show/hiding the instances should be controllable by capability too.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              danielneis Daniel Neis Araujo
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Mark Nelson
              Integrator:
              Damyon Wiese
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

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