Hide Reset Course Content for Teachers

VirineiaLupan
Community Member

Is there a way to hide Reset Course Content for everyone but the Admins? 

I found this code but it doesn't work. 

$('aside#right-side a.reset_course_content_button').hide();document.querySelector('aside#right-side a.reset_course_content_button').style.display='none';document.querySelector('aside#right-side a.reset_course_content_button').remove();‍‍‍‍‍‍‍‍‍

 

0 Likes