summaryrefslogtreecommitdiffstats
path: root/module/api/ConfigApi.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/api/ConfigApi.py')
-rw-r--r--module/api/ConfigApi.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/api/ConfigApi.py b/module/api/ConfigApi.py
index 309400808..d5577f7c3 100644
--- a/module/api/ConfigApi.py
+++ b/module/api/ConfigApi.py
@@ -83,11 +83,14 @@ class ConfigApi(ApiComponent):
:rtype: list of PluginInfo
"""
# TODO: filter user_context / addons when not allowed
- return [ConfigInfo(name, config.name, config.description,
+ plugins = [ConfigInfo(name, config.name, config.description,
self.core.pluginManager.getCategory(name),
self.core.pluginManager.isUserPlugin(name))
for name, config, values in self.core.config.iterSections(self.user)]
+
+ return plugins
+
@RequirePerm(Permission.Plugins)
def loadConfig(self, name):
"""Get complete config options for desired section