-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 17.12.2013 16:39, Brettschneider Falk wrote: > Hi, > If a Trac admin defines user groups, and adds users to it, e.g. via > trac-admin > > trac-admin permission add ringo beatles > > trac-admin permission add john beatles > > or via authzpolicy.conf > > [groups] > > Beatles = ringo, john > > 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”? > > Is there a python code example?
There must be some place in trac.admin.<some-module>, because current Trac >= 1.0 permission admin web-ui is grouping user groups separately. Just find out, how ... Steffen Hoffmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlKwhGsACgkQ31DJeiZFuHe3CQCg5Q/mQYucazfXu+A8YGw79wX6 QNEAoLp1kPAeeAKVGUv5aaN7ahLUj2si =NWsn -----END PGP SIGNATURE----- -- 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.
