We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e735d commit cd34707Copy full SHA for cd34707
backend/src/events/views.py
@@ -1,4 +1,5 @@
1
-from rest_framework.decorators import api_view
+from rest_framework.permissions import IsAuthenticated
2
+from rest_framework.decorators import api_view, permission_classes
3
from rest_framework.response import Response
4
from rest_framework import status
5
@@ -8,6 +9,7 @@
8
9
from ..incidents.services import is_valid_incident
10
11
@api_view(['GET'])
12
+@permission_classes((IsAuthenticated, ))
13
def get_event_trail(request, incident_id):
14
if request.method == "GET":
15
if is_valid_incident(incident_id):
0 commit comments