The first display of the tasklist

Hi,

Could you let me know in which file and string the KB display the first time full list of tasks from DB table “tasks”?

I want to add the exception by user_id but can’t find yet :frowning:
In TaskModel.php I have a string “const TABLE = ‘tasks’;” and before all actions with Tasks table I need to add the condition FOR MYSQL request like “SELECT * WHERE owner_id = $user_id AND creator_id = $user_id”

Please help, how I can to do this one? Sorry for my English