mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-24 21:08:30 +00:00
fix: Disable the applet connection method when all applet hosts have is_active set to False
This commit is contained in:
@@ -101,7 +101,7 @@ class AppletMethod:
|
||||
from .models import Applet, AppletHost
|
||||
|
||||
methods = defaultdict(list)
|
||||
has_applet_hosts = AppletHost.objects.all().exists()
|
||||
has_applet_hosts = AppletHost.objects.filter(is_active=True).exists()
|
||||
applets = Applet.objects.filter(is_active=True)
|
||||
for applet in applets:
|
||||
for protocol in applet.protocols:
|
||||
|
Reference in New Issue
Block a user