Restore to a new course option gone?

Re: Restore to a new course option gone?

by Penny Leach -
Number of replies: 0
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()) {