(*args, **kwds)
| 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 |
nothing calls this directly
no test coverage detected