diff --git a/src/hope_dedup_engine/utils/security.py b/src/hope_dedup_engine/utils/security.py index 6f404de..20e1ba2 100644 --- a/src/hope_dedup_engine/utils/security.py +++ b/src/hope_dedup_engine/utils/security.py @@ -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), ) )