mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-28 18:29:05 +01:00
fix(plugins): Only show actually installed plugins in Installed Plugins page
- Filter pluginList to only include plugins where installed == True - Uninstalled plugins will only appear in Plugin Store, not Installed Plugins - This fixes the issue where uninstalled plugins were still showing locally - Plugins in /home/cyberpanel/plugins/ but not in /usr/local/CyberCP/ are now hidden from Installed Plugins
This commit is contained in:
@@ -251,7 +251,10 @@ def installed(request):
|
||||
if 'is_paid' not in data or not isinstance(data['is_paid'], bool):
|
||||
data['is_paid'] = False
|
||||
|
||||
pluginList.append(data)
|
||||
# Only add to list if plugin is actually installed
|
||||
# Uninstalled plugins should only appear in Plugin Store, not Installed Plugins page
|
||||
if data['installed']:
|
||||
pluginList.append(data)
|
||||
processed_plugins.add(plugin) # Mark as processed
|
||||
except ElementTree.ParseError as e:
|
||||
errorPlugins.append({'name': plugin, 'error': f'XML parse error: {str(e)}'})
|
||||
|
||||
Reference in New Issue
Block a user