I want to have some of the advanced functions hidden in the admin section. For instance I dont want a user with level 5 to be able to change the page template.
I want that drop down field completely gone for users with a specific level that I would put in the code.
I have searched around and found this in the edit-page-form.php file in wp-admin/
<?php if ($user_level > 7 && $users = $wpdb->get_results("SELECT ID, user_login, user_firstname, user_lastname FROM $wpdb->users WHERE user_level <= $user_level AND user_level > 0") ) : ?>
<?php endif; ?>
but im not sure what to edit and take out.
so what exact code should I use for having functions enabled/disabled depending upon the user level that I could just add to already existing php code?