projects
/
Plinn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Déplacement pour eggification.
[Plinn.git]
/
Products
/
Plinn
/
skins
/
control
/
checkRoles.py
diff --git a/Products/Plinn/skins/control/checkRoles.py
b/Products/Plinn/skins/control/checkRoles.py
new file mode 100644
(file)
index 0000000..
8d5707c
--- /dev/null
+++ b/
Products/Plinn/skins/control/checkRoles.py
@@ -0,0
+1,8
@@
+##parameters=roles
+member = context.portal_membership.getAuthenticatedMember()
+for role in roles :
+ if member.allowed(context, [role,]) :
+ continue
+ else :
+ return False
+return True