_aux_functions_sharing
| FUNCTION | DESCRIPTION |
|---|---|
get_link_or_404 |
Raises 404 if User[ |
get_pending_invitation_or_404 |
Raises 404 if User[ |
get_user_id_from_email_or_404 |
Raises 404 if there is no User with email |
raise_403_if_not_owner |
Raises 403 if User[ |
raise_422_if_link_exists |
Raises 422 if User[ |
Classes
Functions:
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
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
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
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
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.