Skip to content

Commit

Permalink
POST /metadata needs writeable_storage only if node has data_sources
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic-shafer committed Feb 21, 2024
1 parent c2a8e3f commit 410da81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiled/server/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ async def post_metadata(
"Externally-managed assets cannot be registered "
"using POST /metadata/{path} Use POST /register/{path} instead."
)
if not getattr(entry, "writable", False):
if body.data_sources and not getattr(entry, "writable", False):
raise HTTPException(
status_code=405, detail=f"Data cannot be written at the path {path}"
)
Expand Down

0 comments on commit 410da81

Please sign in to comment.