mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 14:13:35 +00:00
Sort scopes in doRequestOauth, move scope over for readability
This commit is contained in:
@ -8883,7 +8883,7 @@ def doRequestOAuth():
|
|||||||
return
|
return
|
||||||
else: # select
|
else: # select
|
||||||
api = api_index[selection]
|
api = api_index[selection]
|
||||||
api_scopes = all_apis[api][u'auth'][u'oauth2'][u'scopes'].keys()
|
api_scopes = sorted(all_apis[api][u'auth'][u'oauth2'][u'scopes'].keys())
|
||||||
if len(api_scopes) == 1:
|
if len(api_scopes) == 1:
|
||||||
if len(all_apis[api][u'use_scopes']) == 1:
|
if len(all_apis[api][u'use_scopes']) == 1:
|
||||||
all_apis[api][u'use_scopes'] = []
|
all_apis[api][u'use_scopes'] = []
|
||||||
|
Reference in New Issue
Block a user