You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a new dependency that checks all relevant permissions to see if a user can see a dataset or not.
authenticated: bool = Depends(CheckStatus("AUTHENTICATED")),
public: bool = Depends(CheckStatus("PUBLIC")),
admin=Depends(get_admin),
admin_mode: bool = Depends(get_admin_mode),
viewer: bool = Depends(Authorization("viewer")),
if authenticated or public or (admin and admin_mode) or viewer:
The text was updated successfully, but these errors were encountered:
Make a new dependency that checks all relevant permissions to see if a user can see a dataset or not.
The text was updated successfully, but these errors were encountered: