Unverified Commit cb97a19a authored by John Chilton's avatar John Chilton Committed by GitHub
Browse files

Merge pull request #20582 from mvdbeek/apply_rules_fix

[24.2] Fix apply rules ownership check
parents 6a901014 06498946
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4017,6 +4017,8 @@ class ApplyRulesTool(DatabaseOperationTool):

        def copy_dataset(dataset, tags):
            copied_dataset = dataset.copy(copy_tags=dataset.tags, flush=False)
            copied_dataset.history_id = history.id
            copied_dataset.history = history
            if tags is not None:
                trans.tag_handler.set_tags_from_list(
                    trans.get_user(),
@@ -4024,7 +4026,6 @@ class ApplyRulesTool(DatabaseOperationTool):
                    tags,
                    flush=False,
                )
            copied_dataset.history_id = history.id
            copied_datasets.append(copied_dataset)
            return copied_dataset