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

Create a new capability to see content related to disabled content bank plugins

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Scenario1: Enabled content type

      1. Make sure h5p is enabled in admin/settings.php?section=managecontentbanktypes
      2. Assign a user a manager role
      3. Login as a manager user
      4. Go to contentbank
      5. Add h5p content using Add button
      6. Upload h5p content using Upload button
      7. Ensure you can see uploaded content in contentbank
      8. Ensure you can access each content by clicking on it
      9. Ensure you can edit each content by clicking on Edit button
      10. Add h5pactivity to a course. Add package using Contentbank repository
      11. Ensure you see package in repository and you can access activity after saving changes

      Scenario2: Disabled content type, contentbank:viewdisabledtypes is allowed

      1. Disable h5p in admin/settings.php?section=managecontentbanktypes
      2. Login as a manager user
      3. Go to contentbank
      4. Ensure you can not see Add or Upload buttons
      5. Ensure you can still see uploaded content in contentbank in previous scenario.
      6. Ensure you can access each content by clicking on it
      7. Ensure you can edit each content by clicking on Edit button
      8. Try to add h5pactivity. Add package using Contentbank repository
      9. Ensure you can not see package in repository
      10. Ensure you can still access h5pactivity from last step of Scenario 1

      Scenario3: Disabled content type, contentbank:viewdisabledtypes is not allowed

      1. Edit manager role and remove moodle/contentbank:viewdisabledtypes capability
      2. Login as a manager user
      3. Go to contentbank
      4. Ensure you can not see Add or Upload buttons
      5. Ensure you can not see any content in contentbank.
      6. Ensure you can not access content by its direct URL (you might need to remember it in last step of previous scenario)
      7. Try to add h5pactivity. Add package using Contentbank repository
      8. Ensure you can not see package in repository
      9. Ensure you can still access h5pactivity from last step of Scenario 1
      Show
      Scenario1: Enabled content type Make sure h5p is enabled in admin/settings.php?section=managecontentbanktypes Assign a user a manager role Login as a manager user Go to contentbank Add h5p content using Add button Upload h5p content using Upload button Ensure you can see uploaded content in contentbank Ensure you can access each content by clicking on it Ensure you can edit each content by clicking on Edit button Add h5pactivity to a course. Add package using Contentbank repository Ensure you see package in repository and you can access activity after saving changes Scenario2: Disabled content type, contentbank:viewdisabledtypes is allowed Disable h5p in admin/settings.php?section=managecontentbanktypes Login as a manager user Go to contentbank Ensure you can not see Add or Upload buttons Ensure you can still see uploaded content in contentbank in previous scenario. Ensure you can access each content by clicking on it Ensure you can edit each content by clicking on Edit button Try to add h5pactivity. Add package using Contentbank repository Ensure you can not see package in repository Ensure you can still access h5pactivity from last step of Scenario 1 Scenario3: Disabled content type, contentbank:viewdisabledtypes is not allowed Edit manager role and remove moodle/contentbank:viewdisabledtypes capability Login as a manager user Go to contentbank Ensure you can not see Add or Upload buttons Ensure you can not see any content in contentbank. Ensure you can not access content by its direct URL (you might need to remember it in last step of previous scenario) Try to add h5pactivity. Add package using Contentbank repository Ensure you can not see package in repository Ensure you can still access h5pactivity from last step of Scenario 1
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull 3.11 Branch:
      MDL-69179-311
    • Pull Master Branch:
      MDL-69179-master
    • Sprint:
      Moppies Kanban

      Description

      When a content bank plugin is disabled, the content supported by that plugins is not shown in the content bank.

        Attachments

        1. image-2020-12-15-11-59-15-489.png
          image-2020-12-15-11-59-15-489.png
          21 kB
        2. Screenshot 2020-12-23 at 10.27.42.png
          Screenshot 2020-12-23 at 10.27.42.png
          27 kB
        3. Selection_011.png
          Selection_011.png
          27 kB
        4. Selection_012.png
          Selection_012.png
          17 kB
        5. Selection_013.png
          Selection_013.png
          40 kB

          Issue Links

            Activity

              People

              Assignee:
              ilyatregubov Ilya Tregubov
              Reporter:
              amaia Amaia Anabitarte
              Peer reviewer:
              Amaia Anabitarte Amaia Anabitarte
              Integrator:
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours, 15 minutes
                  2d 4h 15m