Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Aug 8, 2023
1 parent e3796c5 commit 310bf49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seacatauth/authz/resource/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ async def update(self, request, *, json_data):
if "description" in json_data:
await self.ResourceService.update(resource_id, json_data["description"])
if "name" in json_data and json_data["name"] != resource_id:
# TODO: Renaming should be on a separate endpoint
await self.ResourceService.rename(resource_id, json_data["name"])

return asab.web.rest.json_response(request, {"result": "OK"})
Expand Down

0 comments on commit 310bf49

Please sign in to comment.