Do not enforce Compute.Audit and Template.Audit privileges due to current web-ui limitations

This commit is contained in:
grossmj committed 2023-10-18 15:51:43 +10:00
1 parent 109feeb647
commit 47d3f3f349
2 files changed
+7 -5

No files matched your search

@@ -68,7 +68,8 @@ async def create_template(
"/{template_id}",
response_model=schemas.Template,
response_model_exclude_unset=True,
dependencies=[Depends(has_privilege("Template.Audit"))]
dependencies=[Depends(get_current_active_user)],
#dependencies=[Depends(has_privilege("Template.Audit"))] # FIXME: this is a temporary workaround due to a bug in the web-ui
)
async def get_template(
template_id: UUID,
@@ -141,7 +142,8 @@ async def delete_template(
"",
response_model=List[schemas.Template],
response_model_exclude_unset=True,
dependencies=[Depends(has_privilege("Template.Audit"))]
dependencies=[Depends(get_current_active_user)],
#dependencies=[Depends(has_privilege("Template.Audit"))] # FIXME: this is a temporary workaround due to a bug in the web-ui
)
async def get_templates(
templates_repo: TemplatesRepository = Depends(get_repository(TemplatesRepository)),