Issue Details (XML | Word | Printable)

Key: MDL-9066
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Duplicate
Priority: Minor Minor
Assignee: Yu Zhang
Reporter: Petr Skoda
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-9064

No role assigned after restoring into existing course when erasing old data

Created: 27/Mar/07 04:57 PM   Updated: 21/Jul/07 03:52 AM
Return to search
Component/s: Backup
Affects Version/s: 1.8
Fix Version/s: 1.7.2, 1.8, 1.9

Participants: A. T. Wyatt, Petr Skoda and Yu Zhang
Security Level: None
Resolved date: 28/Mar/07
Affected Branches: MOODLE_18_STABLE
Fixed Branches: MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
I am not sure about this one, it might be a problem with capability reloading after deleting of old role assignments.

To replicate (did not test it now, just what I remember from testing creator role):
1/ backup course
2/ restore into existing course - overriding data
3/ no roles assigned at all - though there is a test that should assign legacy editing teacher

My +1 to remember the old role of the user that is restoring the course and reassign it if he/she does not have role assign capability in restored course. I would not use the $CFG->creatornewroleid for this case.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Yu Zhang made changes - 28/Mar/07 09:45 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 1.9 [ 10190 ]
Fix Version/s 1.7.2 [ 10174 ]
Resolution Duplicate [ 3 ]