Skip to content

Commit f5926d5

Browse files
committed
Update permissions for bcodb search to AllowAny
Changes to be committed: modified: search/apis.py
1 parent f296617 commit f5926d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

search/apis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from drf_yasg import openapi
44
from drf_yasg.utils import swagger_auto_schema
55
from rest_framework import status
6-
from rest_framework.permissions import IsAuthenticated
6+
from rest_framework.permissions import AllowAny
77
from rest_framework.response import Response
88
from rest_framework.views import APIView
99
from search.selectors import search_db, controled_list
@@ -28,7 +28,7 @@ class SearchObjectsAPI(APIView):
2828
```
2929
"""
3030

31-
permission_classes = [IsAuthenticated]
31+
permission_classes = [AllowAny]
3232
auth = openapi.Parameter('test', openapi.IN_QUERY, description="test manual param", type=openapi.TYPE_BOOLEAN)
3333

3434
@swagger_auto_schema(

0 commit comments

Comments
 (0)