Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
cir9no committed Aug 27, 2024
1 parent 0dab3d8 commit 7cf89c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions seahub/api2/endpoints/wiki2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,12 +1079,11 @@ def delete(self, request, wiki_id):


class WikiSearch(APIView):
# authentication_classes = (TokenAuthentication, SessionAuthentication)
# permission_classes = (IsAuthenticated, )
# throttle_classes = (UserRateThrottle, )
authentication_classes = (TokenAuthentication, SessionAuthentication)
permission_classes = (IsAuthenticated, )
throttle_classes = (UserRateThrottle, )

def post(self, request):
request.user.username = '[email protected]'
query = request.data.get('query')
search_wiki = request.data.get('search_wiki', 'all')

Expand Down

0 comments on commit 7cf89c8

Please sign in to comment.