Issue Details (XML | Word | Printable)

Key: MDL-6831
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Yu Zhang
Reporter: Eloy Lafuente (stronk7)
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

No "teachers" (or corresponding role) after restore...

Created: 05/Oct/06 01:51 AM   Updated: 23/Jul/07 09:59 AM
Return to search
Component/s: Backup
Affects Version/s: 1.7
Fix Version/s: 1.7

Environment: Any

Database: Any
Participants: A. T. Wyatt, Eloy Lafuente (stronk7), Martin Dougiamas and Yu Zhang
Security Level: None
Resolved date: 10/Oct/06
Affected Branches: MOODLE_17_STABLE
Fixed Branches: MOODLE_17_STABLE


 Description  « Hide
Hi,

After fixing MDL-6084 (for 1.6.x) I've taken a look to the corresponding code under 1.7, just to see that the expected functionality is currently deleted, so, if the user restoring the course isn't in the restore file itself, he isn't able to handle the restored course! (originally this was MDL-2381 some months ago).

So I think that something like this must be provided:

If the user restoring the course isn't a global admin (able to edit any course, not sure if this is legacy:admin or legacy:teacher at site level...) ==> assign to him editing rights on course (legacy:teacher?), obviously ONLY if such user hasn't that role yet.

Else we'll have a lot of courses restored by people that, after restore, won't be able to edit it and that seems to be a wrong behaviour.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Eloy Lafuente (stronk7) made changes - 06/Oct/06 06:23 AM
Field Original Value New Value
Assignee Eloy Lafuente [ stronk7 ] Yu Zhang [ lazyfish ]
Yu Zhang made changes - 10/Oct/06 11:21 AM
Fix Version/s 1.7 [ 10120 ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]