Unverified Commit 06498946 authored by mvdbeek's avatar mvdbeek
Browse files

Fix apply rules ownership check

parent 4368e15f
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