mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-07-16 22:36:56 +02:00
linters
This commit is contained in:
@ -22,7 +22,7 @@ class PermissionScopes(BaseScopes):
|
|||||||
scopes = {}
|
scopes = {}
|
||||||
if 'scopes' in kwargs:
|
if 'scopes' in kwargs:
|
||||||
for scope in kwargs['scopes']:
|
for scope in kwargs['scopes']:
|
||||||
if scope == 'openid' :
|
if scope == 'openid':
|
||||||
scopes['openid'] = "OpenID Connect"
|
scopes['openid'] = "OpenID Connect"
|
||||||
else:
|
else:
|
||||||
p = Permission.objects.get(id=scope.split('_')[0])
|
p = Permission.objects.get(id=scope.split('_')[0])
|
||||||
|
@ -163,7 +163,7 @@ class ScopesView(LoginRequiredMixin, TemplateView):
|
|||||||
|
|
||||||
from oauth2_provider.models import Application
|
from oauth2_provider.models import Application
|
||||||
from .scopes import PermissionScopes
|
from .scopes import PermissionScopes
|
||||||
|
|
||||||
oidc = False
|
oidc = False
|
||||||
context["scopes"] = {}
|
context["scopes"] = {}
|
||||||
for app in Application.objects.filter(user=self.request.user).all():
|
for app in Application.objects.filter(user=self.request.user).all():
|
||||||
|
Reference in New Issue
Block a user