about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gn3/api/case_attributes.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/gn3/api/case_attributes.py b/gn3/api/case_attributes.py
index 2714ad8..95a2d98 100644
--- a/gn3/api/case_attributes.py
+++ b/gn3/api/case_attributes.py
@@ -317,21 +317,3 @@ def reject_case_attributes_diff(
         return jsonify({
             "message": ("You don't have the right privileges to edit this resource.")
         }), 401
-
-
-@caseattr.route("/<int:inbredset_id>/diff/<int:change_id>/view", methods=["GET"])
-@require_token
-def view_diff(inbredset_id: int, change_id: int, auth_token=None) -> tuple[Response, int]:
-    """View a diff."""
-    try:
-        required_access(
-            auth_token, inbredset_id, ("system:inbredset:view-case-attribute",))
-        with (database_connection(current_app.config["SQL_URI"]) as conn,
-              conn.cursor(cursorclass=DictCursor) as cursor):
-            return jsonify(
-                view_change(cursor, change_id)
-            ), 200
-    except AuthorisationError as __auth_err:
-        return jsonify({
-            "message": ("You don't have the right privileges to view the diffs.")
-        }), 401