LTI Restrictions (for instructors)

Jump to solution
ahess4
Community Contributor

Does anyone have suggestions on how to prevent instructors from installing non-vetted LTI tools or preventing tools from being added at the course level?

Thanks,

Anthony Hess

Labels (1)
1 Solution

Anthony,

This is what I am using to exclude the buttons from everyone except an account-level admin. You should be able to add the button for "Add App" in there to hide it from all other roles as well.

$(document).ready(function(){

if($.inArray('admin',ENV['current_user_roles']) == -1) {

    $("a.btn.button-sidebar-wide.delete_course_link").hide();

    $("a.btn.button-sidebar-wide.reset_course_content_button").hide();

    $("a[href*='confirm_action?event=conclude']").hide();

    $('a.no-hover.edit_section_link').hide();

    $('a.no-hover.cant_delete_section_link').hide();

    $('#add_section_form').hide();

    $('input#course_section_name').hide();

    $('#add_section_form > button').hide();

}

})

Shane

View solution in original post