def sidebar_widget(context):
    user = context.get('user', None)
    if not user or not user.is_authenticated():
        return ''