Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda committed Jan 24, 2024
1 parent 81a53be commit 205d0c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gateway/api/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ class IsOwner(permissions.BasePermission):
"""

def has_object_permission(self, request, view, obj):
if isinstance(obj, RuntimeJob):
return obj.job.author == request.user
return obj.author == request.user

0 comments on commit 205d0c5

Please sign in to comment.