(user)
return registered_plugins
Get a list of user plugins.

    Gets a list of user plugins in a form if tuple (plugin name, plugin
    description). If not yet auto-discovered, auto-discovers them.

    :return list:
Get a list of user plugins.
Get a list of user plugins .
def get_user_plugins(user):
    """Get a list of user plugins.

    Gets a list of user plugins in a form if tuple (plugin name, plugin
    description). If not yet auto-discovered, auto-discovers them.

    :return list:
    """
    ensure_autodiscover()

    if not RESTRICT_PLUGIN_ACCESS or getattr(user, 'is_superuser', False):
        return get_registered_plugins()

    registered_plugins = []

    allowed_plugin_uids = get_allowed_plugin_uids(user)

    for uid, plugin in plugin_registry._registry.items():
        if uid in allowed_plugin_uids:
            registered_plugins.append((uid, safe_text(plugin.name)))

    return registered_plugins
def get_user_plugins ( user ) : ensure_autodiscover ( ) if not RESTRICT_PLUGIN_ACCESS or getattr ( user , 'is_superuser' , False ) : return get_registered_plugins ( ) registered_plugins = [ ] allowed_plugin_uids = get_allowed_plugin_uids ( user ) for uid , plugin in plugin_registry . _registry . items ( ) : if uid in allowed_plugin_uids : registered_plugins . append ( ( uid , safe_text ( plugin . name ) ) ) return registered_plugins