Skip to content

Commit

Permalink
chg ! superuser can rerun deduplication task in case DIRTY state
Browse files Browse the repository at this point in the history
  • Loading branch information
vitali-yanushchyk-valor committed Nov 12, 2024
1 parent 0e520a1 commit 6c92487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hope_dedup_engine/utils/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def can_reprocess(request: Any, *args: Any, **kwargs: Any) -> bool:
if obj:
return any(
(
request.user.is_superuser and obj.state == DeduplicationSet.State.ERROR,
request.user.is_superuser and obj.state == DeduplicationSet.State.DIRTY,
is_root(request),
)
)
Expand Down

0 comments on commit 6c92487

Please sign in to comment.