Project

General

Profile

Bug #7201

CourseManager::unsubscribe_user() deletes resources equally from or out of session

Added by Yannick Warnier almost 7 years ago.

Status:
New
Priority:
Urgent
Assignee:
-
Category:
Tracking / Reporting
Target version:
Start date:
03/07/2014
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

The unsubscribe_user() method, if provided a session id, should delete only stuff related to this session.

This is set as urgent although it is extremely rare to have students subscribed to a course both outside and inside of a session, but because it might so happen that a user is subscribed to 3 sessions, then is unsubscribed from one of these session only: this would also delete his results in other sessions.

In this case, it seems like the code would delete all the contents of the student in the previous session, which is probably not desired...

We need the basis of v10 to be ready before we can fix this.

Also available in: Atom PDF