$this->crud->addClause
works perfectly for listing but not when adding content to the system. What's the correct way to add that functionality to the field types?
Imagine that there are many users, each user has multiple projects and each project has multiple tickets.
When a user creating a ticket for a project, he/she shouldn't be able to see the projects belong to other users. So how to filter relationship results by the session or related data?