On Dec 17, 2013 11:03 AM, "Patrick Schaaf" <[email protected]> wrote: > > > 2013/12/17 Brettschneider Falk <[email protected]> > >> >> how can I programmatically find out in my plugin sources if the current user (e.g. req.authname==”ringo”) is member of the group “beatles”? > > > Run a trac DB query "select action from permission where username = 'ringo'". When recursive resolution is desired, run it again for each returned action as the username. Beware of loops :) >
Not enough for custom group providers e.g. Ldap Sent from Android -- Regards Olemis - @olemislc Blog-ES : http://simelo-es.blogspot.com Blog-EN : http://simelo-en.blogspot.com Projects : http://blood-hound.net -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-dev. For more options, visit https://groups.google.com/groups/opt_out.
