You may have a client that needs the WordPress Dashboard customized depending on user roles, by restricting editors or authors to all of the admin details. This code will get rid of the ‘Incoming Links’ widget for authors and editors and then clean up some of the other boxes for everyone.
At your own risk, paste the following snippet into your theme’s functions.php: