Limit access to a page

Find by myself. Just forget to declare $user = wp_get_current_user();