diff options
-rw-r--r-- | ogcp/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 1e2cfac..63f57f0 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -221,7 +221,7 @@ def add_state_and_ips(scope, clients, ips): def get_allowed_scopes(scopes, allowed_scopes): for scope in scopes.get('scope'): - if scope.get('name') in current_user.scopes: + if scope.get('name') in current_user.scopes or scope.get('type') == 'server': allowed_scopes.append(scope) else: get_allowed_scopes(scope, allowed_scopes) |