Hide sidebar when the user cannot use it