With this small snippet you are able to show the Admin Bar to website’s administrators only. No other user will be able to see the Admin Bar after logging in. This snippet is very useful if your site have membership functionality and users can register/login on your website.
// Check if user is Administrator or Not
if (!current_user_can('administrator')) :