Hi Eloy!
I've just come across this as well - shouldn't the logic look like
if (isteacheredit($id) and !isadmin()) {
$restore_restoreto_options[0] = get_string("currentcoursedeleting");
$restore_restoreto_options[1] = get_string("currentcourseadding");
}
if (isadmin() || iscreator()) {
$restore_restoreto_options[0] = get_string("existingcoursedeleting");
$restore_restoreto_options[1] = get_string("existingcourseadding");
$restore_restoreto_options[2] = get_string("newcourse");
}
:: I changed if (isadmin()) { to if (isadmin() || iscreator()) {
Backup and restore
Restore to a new course option gone?
This discussion has been locked so you can no longer reply to it.