diff options
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index fc52ce0..a60a8d6 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -176,7 +176,8 @@ def add_state_and_ips(scope, clients, ips): scope['ip'] = [] for child in scope['scope']: scope['ip'] += add_state_and_ips(child, clients, ips) - scope['selected'] = set(scope['ip']).issubset(ips) + scope['selected'] = (len(scope['ip']) < 0 and + set(scope['ip']).issubset(ips)) return scope['ip'] def get_allowed_scopes(scopes, allowed_scopes): |