MDL-68788 core_notification: Check if the user is logged in