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