Make sure current_user exists and is has a value before using it.