Only Assigned Person should see they task

I assign one task for particular person but its shows for all employee and they easily access that document, how to make task assigned for that employee with out showing other task.

Which version of Frappe you are using

or use the permission_query_conditions at file

Thanks for your response we using Frappe Version 14.

No-code solution:

  1. Remove user’s role from role permission manager and only let them create/edit their own tasks.

  1. Now when you assign a document, it will be automatically shared too so users will be able to see tasks they created + tasks they are assigned.