mirror of https://github.com/jumpserver/jumpserver
parent
06aef8fb1a
commit
fd19bb6299
|
@ -70,7 +70,7 @@ def require_auth(role='user'):
|
||||||
request.user = user
|
request.user = user
|
||||||
if role == 'admin':
|
if role == 'admin':
|
||||||
if user.role in ['SU', 'GA']:
|
if user.role in ['SU', 'GA']:
|
||||||
request_finished.send_robust()
|
request_finished.send_robust(func)
|
||||||
return func(request, *args, **kwargs)
|
return func(request, *args, **kwargs)
|
||||||
logger.debug('Websocket: user [ %s ] is not admin.' % user.username)
|
logger.debug('Websocket: user [ %s ] is not admin.' % user.username)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue