Use @require_admin decorator (#98061)
Co-authored-by: Robert Resch <robert@resch.dev> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This commit is contained in:
parent
525f39fe28
commit
b0f68f1ef3
8 changed files with 136 additions and 66 deletions
|
@ -90,7 +90,7 @@ class FlowManagerIndexView(_BaseFlowManagerView):
|
|||
class FlowManagerResourceView(_BaseFlowManagerView):
|
||||
"""View to interact with the flow manager."""
|
||||
|
||||
async def get(self, request: web.Request, flow_id: str) -> web.Response:
|
||||
async def get(self, request: web.Request, /, flow_id: str) -> web.Response:
|
||||
"""Get the current state of a data_entry_flow."""
|
||||
try:
|
||||
result = await self._flow_mgr.async_configure(flow_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue