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

Prohibiting editownprofile capability breaks functionality of blocks/content bank

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76878-401
    • Hide

      Setup

      1. Log in as admin
      2. Create a new user
      3. Create a course
        • Course start date: 1 January 2023
        • Course end date: Disable
      4. Enrol user as student on course
      5. Manually navigate to <WWWROOT>/contentbank/index.php?contextid=1
      6. Upload ipsums.h5p
      7. Navigate to Users > Permissions > Define roles in site administration
      8. Edit the Authenticated user role
        • moodle/user:editownprofile = Prohibit
        • moodle/contentbank:access = Allow
      9. Log out

      Manual test

      1. Log in as test user
      2. Manually navigate to <WWWROOT>/contentbank/index.php?contextid=1
      3. Press Display content bank with file details
      4. Confirm file details are shown
      5. Reload the page
      6. Confirm file details are still shown
      7. Navigate to Dashboard
      8. In Timeline block, set filters:
        • Due date: Next 6 months
        • Sort by courses
      9. Reload page
      10. Confirm same filters values are present in Timeline block
      11. Turn editing on
      12. Add Course overview block
      13. In Course overview block press Actions.. for enrolled course and Remove from view
      14. Reload page
      15. Confirm course is still removed from view
      16. In Course overview block, set filters:
        • Removed from view
        • Sort by last access
        • Summary
      17. Reload page
      18. Confirm same filters values are present in Course overview block
      19. Confirm enrolled courses is listed (as removed from view)
      Show
      Setup Log in as admin Create a new user Create a course Course start date: 1 January 2023 Course end date: Disable Enrol user as student on course Manually navigate to <WWWROOT>/contentbank/index.php?contextid=1 Upload ipsums.h5p Navigate to Users > Permissions > Define roles in site administration Edit the Authenticated user role moodle/user:editownprofile = Prohibit moodle/contentbank:access = Allow Log out Manual test Log in as test user Manually navigate to <WWWROOT>/contentbank/index.php?contextid=1 Press Display content bank with file details Confirm file details are shown Reload the page Confirm file details are still shown Navigate to Dashboard In Timeline block, set filters: Due date: Next 6 months Sort by courses Reload page Confirm same filters values are present in Timeline block Turn editing on Add Course overview block In Course overview block press Actions.. for enrolled course and Remove from view Reload page Confirm course is still removed from view In Course overview block, set filters: Removed from view Sort by last access Summary Reload page Confirm same filters values are present in Course overview block Confirm enrolled courses is listed (as removed from view)
    • WP Sprint 2023-I1.1 (David)

      This is a duplicate of an issue reported by a Workplace partner (WP-4010, thanks b.wolf82), but one that targets LMS because the same underlying problems are also present there

      If the current user does not have moodle/user:editownprofile capability then certain operations on blocks and in the content bank do not function correctly because the preference(s) for toggling features/state can not be persisted (there is more context in the WP issue)

      We should implement 'permissioncallback' properties for each of those preferences, to ensure they can be updated as appropriate (similar to existing implementations)

            pholden Paul Holden
            pholden Paul Holden
            David Carrillo David Carrillo
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 35 minutes
                1h 35m

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