This code can be used to hide specific parts in the WordPress admin by user id, this supports custom post types etc.
Add the code to your functions.php in the theme folder you are using.
Read the code you've added. There are some comments in there to help you along the way and configure everything.
If you have any suggestions, feedback or questions feel free to ask.