Handle UI for dangerous scopes
This commit is contained in:
parent
02e47ed572
commit
05a1413153
4 changed files with 69 additions and 7 deletions
|
@ -43,7 +43,7 @@ READ_USER = Scope(scope= 'user:read',
|
|||
'username and email address.'))
|
||||
|
||||
ORG_ADMIN = Scope(scope='org:admin',
|
||||
icon='fa-exclamation-triangle',
|
||||
icon='fa-gear',
|
||||
dangerous=True,
|
||||
title='Administer Organization',
|
||||
description=('This application will be able to administer your organizations '
|
||||
|
@ -103,6 +103,7 @@ def get_scope_information(scopes_string):
|
|||
'scope': scope.scope,
|
||||
'description': scope.description,
|
||||
'icon': scope.icon,
|
||||
'dangerous': scope.dangerous,
|
||||
})
|
||||
|
||||
return scope_info
|
||||
|
|
Reference in a new issue