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

It should be possible to override Repository capabilties in activity contexts

    XMLWordPrintable

Details

    • MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MDL-63818-master-2
    • Hide
      1. Create a book activity
      2. From the Edit cog, choose the Permissions page
        1. Verify that the Repository capabilities are shown.
        2. Verify that capabilities relating to the book tool are shown.
        3. Verify that no capabilities for forum, quiz, assign, or any other plugins are shown.
      Show
      Create a book activity From the Edit cog, choose the Permissions page Verify that the Repository capabilities are shown. Verify that capabilities relating to the book tool are shown. Verify that no capabilities for forum, quiz, assign, or any other plugins are shown.

    Description

      All the repository capabilities declare themselves as 'contextlevel' => CONTEXT_MODULE, which means that they should be overridable at that context level. However, they are not returned by context_module::get_capabilities, so they don't show up in the UI.

      Attachments

        1. all_modules_get_caps_after_patch.txt
          39 kB
          Eloy Lafuente (stronk7)
        2. all_modules_get_caps_before_patch.txt
          15 kB
          Eloy Lafuente (stronk7)
        3. all_modules_get_caps.php
          0.9 kB
          Eloy Lafuente (stronk7)
        4. image-2018-11-05-08-57-15-851.png
          182 kB
          Janelle Barcega

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              timhunt Tim Hunt
              Tim Hunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Janelle Barcega Janelle Barcega
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Nov/18

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes
                  20m