MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / decorated_function

Function decorated_function

python/web/src/web.py:411–415  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

409
410 @wraps(func)
411 def decorated_function(*args, **kwargs):
412 auth = auth_active(AUTH_GROUP)
413 if auth["status"] and "username" not in session:
414 return response(error=True, message=auth["msg"])
415 return func(*args, **kwargs)
416
417 return decorated_function
418

Callers

nothing calls this directly

Calls 2

auth_activeFunction · 0.90
responseFunction · 0.85

Tested by

no test coverage detected