MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / wrapped

Function wrapped

web/pgadmin/authenticate/__init__.py:76–81  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

74def 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

Callers 1

execute_funcFunction · 0.50

Calls 1

disconnectFunction · 0.50

Tested by

no test coverage detected