Custom role restriction on task visibility

Hi all!
Who knows how to add the “visible” property for the “task”?
I need to hide not assigned tasks for him for some roles/users by default.
I know that you already have discussed it but I think to create this restriction is most simplify a way for this goal.

P.S. Sorry for my English, I hope you understand me :slight_smile:

see also Restrict view feature/plugin

Guys, if who can to do this algorithm will be great!

  1. To create the array “Assigned” where will 2 columns “user” and “tasks”. We need to get the list with all assigned tasks for a user.
  2. To create the restriction where for some user1 will show only tasks from array “Assigned”.
    That’s enough for our task I think.