Index: trunk/grails-app/services/TaskSearchService.groovy
===================================================================
--- trunk/grails-app/services/TaskSearchService.groovy	(revision 510)
+++ trunk/grails-app/services/TaskSearchService.groovy	(revision 511)
@@ -204,16 +204,24 @@
                                         left join assignedGroupOfTask.personGroup as personGroup \
                                         left join personGroup.persons as assignedPersonViaGroup \
+                                        left join task.taskModifications as taskModification \
+                                        left join taskModification.person as createdBy \
+                                        left join taskModification.taskModificationType as taskModificationType \
                                         where (task.trash = false \
-                                                    and task.approved = true \
+                                                    and task.targetStartDate < :endDate \
+                                                    and task.targetCompletionDate >= :startDate \
                                                     and ( \
-                                                            task.targetStartDate < :endDate \
-                                                            and task.targetCompletionDate >= :startDate \
+                                                        (taskModificationType.id = 1 \
+                                                        and createdBy = :person \
+                                                        and task.leadPerson = :person) \
+                                                        or ( \
+                                                            task.approved = true \
+                                                            and ( \
+                                                                task.leadPerson = :person \
+                                                                or assignedPerson = :person \
+                                                                or assignedPersonViaGroup = :person \
+                                                            ) \
                                                         ) \
-                                                    and ( \
-                                                            task.leadPerson = :person \
-                                                            or assignedPerson = :person \
-                                                            or assignedPersonViaGroup = :person \
-                                                            ) \
-                                                    )"
+                                                    ) \
+                                        )"
 
         def searchQuery = "select distinct task " + baseQuery + orderBy
