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

Single View Report not functioning with Groups

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.8 regressions, 2.8.1
    • Fix Version/s: 2.8.2
    • Component/s: Gradebook
    • Testing Instructions:
      Hide
      1. In a given course, enrol few students and two teachers.
      2. Change course settings to Separate groups and Force group mode.
      3. Remove the accessallgroups capability from teacher role.
      4. Create 2 groups, add few students and a teacher into each group.
      5. Add a grade item.
      6. Log in as teacher 1 and go to Grades > Single view.
      7. Make sure you only see the students that belongs to your group.
      8. Suspend the enrolment of a user. (As admin)
      9. Make sure you're not able to see this user on the single view report.
      10. Activate the student enrolment again.
      11. Make sure you are able to see this student on singleview report.
      12. Try to manupulate the URL, changing params (itemid or groupid)
      13. Make sure it will throw an error on case of invalid user id or it will not display the user of a group you dont belong.
      14. Run unit tests on : grade/report/singleview/tests/screen_test.php and make sure it pass.
      Show
      In a given course, enrol few students and two teachers. Change course settings to Separate groups and Force group mode . Remove the accessallgroups capability from teacher role. Create 2 groups, add few students and a teacher into each group. Add a grade item. Log in as teacher 1 and go to Grades > Single view. Make sure you only see the students that belongs to your group. Suspend the enrolment of a user. (As admin) Make sure you're not able to see this user on the single view report. Activate the student enrolment again. Make sure you are able to see this student on singleview report. Try to manupulate the URL, changing params (itemid or groupid) Make sure it will throw an error on case of invalid user id or it will not display the user of a group you dont belong. Run unit tests on : grade/report/singleview/tests/screen_test.php and make sure it pass.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Sprint:
      BACKEND Sprint 18

      Description

      Single View Reports does not filter users based on group access.

      A Teacher in Group A can see and edit students grades who are in Group B.

      See Forumn Discussion: https://moodle.org/mod/forum/discuss.php?d=275232

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              getsingb Brian Getsinger
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Dan Poltawski
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jan/15