Skip to content

Commit

Permalink
remove unauthorised access to update/create views
Browse files Browse the repository at this point in the history
  • Loading branch information
gythaogg committed Nov 21, 2024
1 parent 809a46d commit 8f8841e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apis_ontology/settings/server_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@

def apis_view_passes_test(view) -> bool:
# Temporary hack
return True
if view.permission_action_required == "view":
return True


APIS_LIST_VIEWS_ALLOWED = True
Expand Down

0 comments on commit 8f8841e

Please sign in to comment.