Am 27.04.2010 08:49, schrieb Josh Godsiff:
Is there a way (using PermissionCache) to check whether a particular
user exists within a project at all?

No, it is not in the general case. However you can make some assumptions in order to make it possible:
1. A user exists if he was granted at least one extra permission (this
   might not be true because every authenticated user gets some
   permissions automatically which might be enough in some setups
   already).
   In that case just check the table with SQL.
2. You use AccountManager and a user exists if he has a user account
   there (use AccountManager API or SQL)
3. A user exists if he logged in at least once in this project and has
   some stored preferences/session id (use SQL to check the session*
   tables)

fs

--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to