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 1f84621..c1da3f0 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -251,7 +251,8 @@ def add_state_and_ips(scope, clients, ips): return scope['ip'] def remove_disabled_scopes(scopes): - for scope in scopes.get('scope'): + scope_list = scopes.get('scope')[:] + for scope in scope_list: if scope.get('type') == 'center': if str(scope.get('id')) in current_user.scopes: continue |