MCPcopy Index your code
hub / github.com/diffgram/diffgram / inner

Method inner

shared/permissions/task_permissions.py:31–40  ·  view source on GitHub ↗
(*args, **kwds)

Source from the content-addressed store, hash-verified

29 def wrapper(func):
30 @wraps(func)
31 def inner(*args, **kwds):
32 task_id = kwds.get('task_id', None)
33
34 Permission_Task.by_task_id_core(task_id = task_id)
35
36 # We expect Permission_Task to raise
37 # if we get here it's allowed
38 return func(*args, **kwds)
39
40 raise Forbidden("No access.")
41
42 return inner
43

Callers

nothing calls this directly

Calls 2

by_task_id_coreMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected