Custom css author role

If a user is not logged in then admin_head probably won’t run. So let’s just check their capabilities.

function my_custom_admin_head() {
    if ( ! current_user_can( 'have-fun' )) :
    ?><style>
        #welcome-panel{display: none !important;}
        #wp-content-editor-tools{display: none !important;}
    </style>
    <?php endif; // cant' have-fun
}
add_action( 'admin_head', 'my_custom_admin_head' );