_aux_functions_sharing
get_link_or_404(*, user_id, project_id, db)
async
¶
Raises 404 if User[user_id] is not linked to Project[project_id],
regardless of whether the User or Project exists.
Source code in fractal_server/app/routes/api/v2/_aux_functions_sharing.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
get_pending_invitation_or_404(*, user_id, project_id, db)
async
¶
Raises 404 if User[user_id] has not a pending invitation to
Project[project_id], regardless of whether the User or Project exists.
Source code in fractal_server/app/routes/api/v2/_aux_functions_sharing.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
get_user_id_from_email_or_404(*, user_email, db)
async
¶
Raises 404 if there is no User with email user_email.
Source code in fractal_server/app/routes/api/v2/_aux_functions_sharing.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |
raise_403_if_not_owner(*, user_id, project_id, db)
async
¶
Raises 403 if User[user_id] is not owner of Project[project_id],
regardless of whether the User or Project exists.
Source code in fractal_server/app/routes/api/v2/_aux_functions_sharing.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
raise_422_if_link_exists(*, user_id, project_id, db)
async
¶
Raises 422 if User[user_id] is linked Project[project_id], regardless
of whether the User or Project exists.
Source code in fractal_server/app/routes/api/v2/_aux_functions_sharing.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 | |