Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.4.2, 3.5.1, 3.6
-
MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
MDL-62868-master -
Easy
-
Description
Replication Steps (Added by Jake)
- Create a course with 2 students
- Create 2 groups, 1 student in each one. Student 1 in A, Student 2 in B.
- Create 2 groupings, one group in each one. Group A in Grouping A, Group B in Grouping B.
- Create 2 activities, one restricted to Grouping A, the other to Grouping B
- Now, as student 1, log in. One activity will be accessible, the other won't.
- Now, in another session (to save logging out and back in again), modify Grouping B (currently only has Group B) and add Group A to it.
- Now, as the student, referesh the page.
Expected: You should be able to access both activities.
Actual: You still can only access the first activity which is restricted to Grouping A.
Original report from David
As far as I can see, this is not working for any type of activity. This is not a quiz-specific bug.
Steps to reproduce: (I did this on https://qa.moodle.net/course/view.php?id=2).
- Create a test course.
- Enrol a test student 'student'.
- Create a group 'Group A' and add 'student' to it.
- Greate a grouping 'Grouping A' and add 'Group A' to it.
- Create an activity of any type (I tried with both quiz and assignment).
- Under 'Restrict access' set 'Must belong to a group in Grouping A' (I.e. Set a 'Grouping = Grouping A' restriction)
- Log in as student.
- Try to access the activity.
Expected result: the student can access the activity.
Actual result: when you click on the name of the activity, you are redirected back to the cousre page, with notification "Online Text Assignment Assignment
Not available unless: You belong to a group in Grouping A" displayed at the top.I think this might be a transient problem (so caching???): After the above steps, if you remove 'student' from 'Group A', then add them back, then it seems to start working. Probably 'Purge all caches' would also fix it.
So, this is certainly order-dependent, and since I wrote the steps above after my testing was complete, I hope I got the order right.
Original report:
In a course I have numerous groups and groupings. Recently, I created three different quizzes (A, B, C) that I wanted only available to three different groupings (A, B, C). In each grouping there were 4 groups.
The "Common module settings" Group mode is "Separate groups" and Restrict access was set to grouping must match the following and the grouping A was set for quiz A and Grouping B for Quiz B and Grouping C for quiz C. Students in the groups in grouping A, B, C were unable to access their respective quizzes.
After removing the restrict access setting they were able to see the quizzes, but were able to access the other quizzes as well.
In looking at the quiz results the separate groups by grouping is working correctly. For example, I can only see the groups in grouping A only in the A quiz.
The groups are also in different groupings based on instructor and other assignments, but according to the documentation this shouldn't be a problem.