3d586739c615e1631829b205ddd3efc77cc61028
2 ctool
= context
.portal_catalog
3 checkPerm
= context
.portal_membership
.checkPermission
4 from Products
.CMFCore
.permissions
import ReviewPortalContent
5 for s
in ['pending'] : # other states can be added
6 for b
in ctool(review_state
=s
) :
7 if checkPerm(ReviewPortalContent
, b
.getObject()) :