Disable Feature Options Tab

Jump to solution
adachung_ihub
Community Novice

Hi,

I would like to know if it is possible to hide the Feature Options tab in Courses Settings.

As some of the courses might have more than one teacher assigned and only one of them is allowed to amend the Feature Options.

Any suggestion?

Thanks.

Labels (1)
1 Solution
ahess4
Community Contributor

You can add this javascript to block the Feature Options tab, but it would block from all instructors/teachers (admins would still see it in a course):

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

$('#tab-features-link').hide();

};

As far as allowing one teacher access, I don't think that is possible at this time. You would have to utilize a custom role to identify which teachers are to have access, but it doesn't seem like custom roles can be referenced in the 'current_user_roles' variable. There was some talk about that here:

Help with a custom JS File??

Thanks,

Anthony Hess

View solution in original post