Will,
The only way I can find to accomplish this without removing modifying their permissions is using JavaScript. Below is something quick i whipped up. This should do what you are looking for but I would definitely do some testing in your test environment before adding to live to ensure it works for your institution.
$(document).ready(function () {
var urlFifthLoc = document.URL.split('/')[5];
var isTeacher = false;
//Checks to see if user is a teacher
var roles = ENV['current_user_roles'];
var arrayLength = roles.length;
for (var i = 0; i < arrayLength; i++) {
if(roles[i] === 'teacher'){
isTeacher = true;
}
}
if(isTeacher === true)
{
if( urlFifthLoc === 'settings'){
var el = document.getElementsByClassName("btn button-sidebar-wide delete_course_link");
if (el.length > 0) {
el[0].style.display = "none";
}
}
if( urlFifthLoc === 'sections'){
var el = document.getElementsByClassName("btn button-sidebar-wide crosslist_link");
if (el.length > 0) {
el[0].style.display = "none";
}
}
}
});
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.