Viewer paths
| FUNCTION | DESCRIPTION |
|---|---|
get_current_user_allowed_viewer_paths |
Returns a list of data paths that the user should have access to. |
Classes¶
Functions:¶
get_current_user_allowed_viewer_paths(include_shared_projects=True, current_user=Depends(current_user_act_ver), db=Depends(get_async_db))
async
¶
Returns a list of data paths that the user should have access to.
In its default behavior, this endpoint returns a list made of two kinds of paths:
- All the project directories of the current user.
- The zarr directories of all datasets which are accessible to the current user (either as a project owner or as a project guest).
NOTE: include_shared_projects is a legacy query-parameter name,
which does not make a difference between owners/guests. A better
naming would be e.g. include_zarr_dirs, but it would require a fix
in fractal-web which is currently postponed.