Merge commit 'a4cb4d96face514924387d34746b3148848ac092' into zope-2.13
[Plinn.git] / skins / control / checkRoles.py
1 ##parameters=roles
2 member = context.portal_membership.getAuthenticatedMember()
3 for role in roles :
4 if member.allowed(context, [role,]) :
5 continue
6 else :
7 return False
8 return True