Skip to content

Commit

Permalink
Fix: Do not permit updating sector through API
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
  • Loading branch information
georgepadayatti committed Apr 7, 2024
1 parent 4070d60 commit f5ad6a6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ def put(self, request):
datasource.name = data["name"]
if data.get("policyUrl"):
datasource.policyUrl = data["policyUrl"]
if data.get("sector"):
datasource.sector = data["sector"]

# Save the updated DataSource instance
datasource.save()
Expand Down

0 comments on commit f5ad6a6

Please sign in to comment.