Skip to content

Commit

Permalink
Allow Anyone Delete Token
Browse files Browse the repository at this point in the history
  • Loading branch information
vcai122 committed Nov 18, 2024
1 parent b1a8bfa commit 680b3bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ def get_object(self):


class NotificationTokenView(APIView, ABC):
permission_classes = [IsAuthenticated]
# permission_classes = [IsAuthenticated]
def get_permissions(self):
if self.request.method == "DELETE":
return []
return [IsAuthenticated()]

queryset = None

def get_defaults(self):
Expand Down

0 comments on commit 680b3bc

Please sign in to comment.