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

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

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • 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

       

      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).

            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:
            19 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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