(*args, **kwargs)
| 74 | def socket_login_required(f): |
| 75 | @functools.wraps(f) |
| 76 | def wrapped(*args, **kwargs): |
| 77 | if not current_user.is_authenticated: |
| 78 | disconnect() |
| 79 | raise ConnectionRefusedError("Unauthorised !") |
| 80 | else: |
| 81 | return f(*args, **kwargs) |
| 82 | return wrapped |
| 83 | |
| 84 |
no test coverage detected