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

timeline, recentlyaccessedcourses, recentlyaccesseditems, starredcourses, myoverview blocks should not have an addinstance capability

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Log in as admin.
      2. Visit "Site administration ► Users ► Permissions ► Capability overview".
        • Make sure the following capabilities are not listed:
          block/timeline:addinstance
          block/recentlyaccessedcourses:addinstance
          block/recentlyaccesseditems:addinstance
          block/starredcourses:addinstance
          block/myoverview:addinstance
      3. Visit "Site administration ► Users ► Permissions ► Define roles".
      4. Access to the editing page for the "Authenticated user" role. 
        • Make sure the following capabilities are not listed:
          block/timeline:addinstance
          block/recentlyaccessedcourses:addinstance
          block/recentlyaccesseditems:addinstance
          block/starredcourses:addinstance
          block/myoverview:addinstance
      5. Visit a course page, turn editing on,
      6. Make sure no debugging notices are displayed on the page.
        • Timeline
        • Recently accessed courses
        • Recently accessed items
        • Starred courses
        • My OverviewGo to the Dashboard (/my) and add the following blocks to the page (if not already added) and make sure no debugging notices are displayed:
      Show
      Log in as admin. Visit " Site administration ► Users ► Permissions ► Capability overview ". Make sure the following capabilities are not listed: block/timeline:addinstance block/recentlyaccessedcourses:addinstance block/recentlyaccesseditems:addinstance block/starredcourses:addinstance block/myoverview:addinstance Visit " Site administration ► Users ► Permissions ► Define roles ". Access to the editing page for the "Authenticated user" role.  Make sure the following capabilities are not listed: block/timeline:addinstance block/recentlyaccessedcourses:addinstance block/recentlyaccesseditems:addinstance block/starredcourses:addinstance block/myoverview:addinstance Visit a course page, turn editing on, Make sure no debugging notices are displayed on the page. Timeline Recently accessed courses Recently accessed items Starred courses My OverviewGo to the Dashboard (/my) and add the following blocks to the page (if not already added) and make sure no debugging notices are displayed:
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-63995-master

      Description

      The new Dashboard blocks Timeline, Recently accessed courses, Recently accessed items, Starred courses and Course overview can only be added to the Dashboard (controlled by a myaddinstance capability).

      It is not possible to add any of the blocks to a course page, so there is no need for an addinstance capability. Thus, the following capabilities need to be removed:

      block/timeline:addinstance
      block/recentlyaccessedcourses:addinstance
      block/recentlyaccesseditems:addinstance
      block/starredcourses:addinstance
      block/myoverview:addinstance

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m