molerus
Hello yall.
I´ve implemented a plugin that manages r/w permissions to users depending on the namespace they are attempting to r/w. For example, the user A might be able to see namespace N1, but might not be able to see namespace N2.
It works ok so far, but i´m having trouble filtering the search results: the user should only see matches that belong to namespaces that he has read permissions for.
I spent a lot of time trying to find the piece of php code that takes care of printing those matches, to add a "if(in_array($namespace,$namespacesIHavePermissionsFor))" code line, but i couldn´t find it!!
Does anyone know how to accomplish this task?
Thanks a lot.
molerus
Ok man, thanks for your quick reply. I can´t rely on sneaky_index to solve my problem, since the user permissions are managed by my plugin, but looking for the "sneaky_index" literal throughout the code gave me the clue to accomplish my task!!