It is ** LLO, Given the Indextank index, for example: class Threads <ActiveRecord :: Base has_many: permissions
enable tanker
tankit 'rails_3_demo' do indexes :content end after_save :update_tank_indexes after_destroy :delete_tank_indexes end
This index exists in my Thread model. The problem is threads that have permissions. Currently, if I allow the user to search by index, they will search all user threads. What is a smart way to handle permissions so that I can only search in the threads that the user has to access. Thanks **
SCHEMA:
USER (id) PROJECT (id) PERMISSION (user_id, project_id) Thread (project_id)
As long as the user has a permission entry for the project, they can view all of these project flows.
source share