@must_be_logged_in
def user_addons(auth, **kwargs):

    user = auth.user

    ret = {
        'addon_settings': addon_utils.get_addons_by_config_type('accounts', user),
    }
    accounts_addons = [addon for addon in settings.ADDONS_AVAILABLE if 'accounts' in addon.configs]
    ret.update({
        'addon_enabled_settings': [addon.short_name for addon in accounts_addons],
        'addons_js': collect_user_config_js(accounts_addons),
        'addon_capabilities': settings.ADDON_CAPABILITIES,
        'addons_css': []
    })
    return ret
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/profile/views.py/user_addons/original