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

Assign submissions cannot be filtered by hidden groups

XMLWordPrintable

      Steps to reproduce:

      1. Create a course with several participants.
      2. Create 3 groups, "Group A", "Group B" and "Group C".
      3. Set "Group C"'s visibility to "Only see own membership"
      4. Assign users to each group.
      5. Add an assignment to the course page with groups mode set to "Separate Groups"
      6. Go into the assignment and click "View all submissions"
        • Expected: The "Separate groups" filter contains all 3 groups
        • Actual: The "Separate groups" filter contains only Group A and Group B.

      When developing MDL-68093 this use case was identified, but at the time there was no clear way to have the groups API safely return hidden groups for features such as this, without the risk of exposing them to the user.

      With MDL-79174 we added the new $includehidden hidden parameter to groups_get_user_groups, to allow specific cases where groups are returned regardless of their visibility, with the responsibility put on the calling code to ensure they are no displayed to unprivileged users. We could make a similar modification to groups_print_activity_menu to allow non-participation groups to be included in the menu.

      Some consideration will need to be given into how these groups are listed, to make it clear that this is a non-participation group, so assignments cannot be submitted through the group.

            marxjohnson Mark Johnson
            marxjohnson Mark Johnson
            Waleed ul hassan Waleed ul hassan
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 24 minutes
                6h 24m

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