Skip to content

Commit

Permalink
Fix job permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioDelConte committed Feb 2, 2024
1 parent 705b457 commit 71ea9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drmaatic/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ def has_object_permission(self, request, view, obj):

class IsOutputAccessible(BasePermission):
def has_object_permission(self, request, view, obj):
if hasattr(obj, 'task') and obj.job.is_output_public:
if hasattr(obj, 'task') and obj.task.is_output_public:
return True
return False

0 comments on commit 71ea9a3

Please sign in to comment.