Am 30.04.2013 07:56, schrieb jo:
Seems to me that:
@tg.identity.require(tg.identity.Any(tg.identity.in_group('SYSADMIN'),
tg.identity.has_permission("FARMACO_REPORT")))

Why not just give the group SYSADMIN the permission FARMACO_REPORT? Then this will reduce to:

@tg.identity.require(tg.identity.has_permission("FARMACO_REPORT"))

You can also make creative use of has_any_permission and in_any_group, or write your own identity predicates. Have a look in identity.conditions to see how you can do that.

-- Chris

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to