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

Some course capabilities do not allow the course edit menu (kebab) to display

    XMLWordPrintable

Details

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-77572_402
    • MDL-77572_403
    • MDL-77572_master
    • Hide
      1. Use any role or create a new course level role. For testing, a new role was created using the “Non editing Teacher” template.  Make sure that the moodle/course:viewhiddenactivities", "moodle/course:activityvisibility", "moodle/course:viewhiddensections", "moodle/course:sectionvisibility" capabilities are set to “allow”, and the "moodle/course:manageactivities" is not set.
      2. Create a course and add a few activities.
      3. Enrol a user into the course and assign them the role from step 1.
      4. Log in as the user in step 3 and navigate to the course.
      5. Turn editing on in the course.
      6. Check the actions menu is displayed for section and activity.
      7. Check the actions menu for section has the Hide topic/Show topic option. 
      8. Change the section visibility and confirm it's changed properly.
      9. Check the actions menu for activity has the Availability option (or Hide/Show in Moodle 4.2).
      10. Check the actions menu for activity hasn't the Move option.
      11. Change the activity visibility and confirm it's changed properly.
      Show
      Use any role or create a new course level role. For testing, a new role was created using the “Non editing Teacher” template.  Make sure that the moodle/course:viewhiddenactivities", "moodle/course:activityvisibility", "moodle/course:viewhiddensections", "moodle/course:sectionvisibility" capabilities are set to “allow”, and the "moodle/course:manageactivities" is not set. Create a course and add a few activities. Enrol a user into the course and assign them the role from step 1. Log in as the user in step 3 and navigate to the course. Turn editing on in the course. Check the actions menu is displayed for section and activity. Check the actions menu for section has the Hide topic/Show topic option.  Change the section visibility and confirm it's changed properly. Check the actions menu for activity has the Availability option (or Hide/Show in Moodle 4.2). Check the actions menu for activity hasn't the Move option. Change the activity visibility and confirm it's changed properly.

    Description

      DESCRIPTION

       

      In Moodle 4.0 the role capabilities “course:activityvisibility”, "moodle/course:viewhiddenactivities", "moodle/course:viewhiddensections" and "moodle/course:sectionvisibility" do not allow the course edit menu (kebab) to display.  This makes the permission unusable unless the capability “course:manageactivities” is allowed (which allows the edit menu/kebab to display).  Prior to 4.0, having the “activity visibility” capability, enabled the “edit” menu to display next to activities without the need for the “manage activities” capability. 

       

      STEPS TO REPLICATE

       

      1.  Use any role or create a new course level role. For testing, a new role was created using the “Non editing Teacher” template.  Make sure that the "course:activityvisibility" capability is set to “allow”, and the "course:manageactivities" is not set.

       

      2.  Create a course and add a few activities.

       

      3.  Enroll a user into the course and assign them the role from step 1.

       

      4.  Log in as the user in step 3 and navigate to the course.

       

      5.  Turn editing on in the course.

      OBSERVED BEHAVIOR:

       

      Even though the permission has been given that allows the user to control activity visibility, the kebab settings menu isn’t displayed, which prevents the user from hiding/showing the activity.

       

      Screen shot of missing edit menu/kebab:

       

       

       

      Screen shot of kebab showing only after adding the permission "Manage Activities" with the "activity visibility permission"

       

       

      EXPECTED BEHAVIOR:

       

      Having the permission activity visibility should allow the settings kebab to display which should then have the setting to Hide/show. 

      Screen shot of edit menu displaying in 3.11.11 with only "Activity visibility" allowed.

       

      REPLICATION LOCATIONS

       

      Moodle Versions 4.0.5, 4.1.1

       

      IMPACT

       

      The permission “activity visibility” is unusable unless another permission ( ex. manage activities) is allowed which brings up the edit menu (kebab).

      Attachments

        1. image-2023-03-08-17-01-28-629.png
          image-2023-03-08-17-01-28-629.png
          63 kB
        2. image-2023-03-08-17-01-40-062.png
          image-2023-03-08-17-01-40-062.png
          65 kB
        3. image-2023-03-08-17-02-05-690.png
          image-2023-03-08-17-02-05-690.png
          57 kB
        4. MDL-77572.png
          MDL-77572.png
          244 kB
        5. moveaction.png
          moveaction.png
          25 kB
        6. moveerror.png
          moveerror.png
          48 kB
        7. Screenshot from 2024-02-28 10-46-35.png
          Screenshot from 2024-02-28 10-46-35.png
          95 kB

        Issue Links

          Activity

            People

              santoshnagargoje Santosh Nagargoje
              jphege83 John Hege
              Huong Nguyen Huong Nguyen
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              7 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 54 minutes
                  4h 54m

                  Clockify

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