Finalizing my next plug-in and trying to lock down the security.
As I've discussed in the forums before, when you join custom tables into a BugEventQuery (or any of the other standard queries) the built in security check isn't applied and you have to turn on IgnorePermissons to avoid a security error.
This is currently forcing me to instantiate a CBug object for every returned bug and use it to check permissions, which is murder on the DB for larger queries.
I was wondering if you would be willing to reveal the exact joins/where conditions normally used to check security on bugs when IgnorePermissions is turned off. That way I could just manually add that logic to my query and do it all in one hit to the DB.
Is this something you would be willing to divulge?