user-panel #9

Merged
cayop merged 25 commits from user-panel into main 2024-10-11 14:26:36 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 0a9596d33b - Show all commits

View File

@ -99,7 +99,7 @@ class TokenDeleteView(DashboardView, DeleteView):
def get(self, request, *args, **kwargs):
self.pk = kwargs['pk']
self.object = get_object_or_404(self.model, pk=self.pk)
self.object = get_object_or_404(self.model, pk=self.pk, owner=self.request.user)
self.object.delete()
return redirect('api:tokens')