Last change
on this file since 891 was
888,
checked in by Henrik Bettermann, 19 years ago
|
some fixes according to email
portlet_waeup_status_display now displays also student state
|
-
Property svn:keywords set to
Id
|
File size:
361 bytes
|
Rev | Line | |
---|
[844] | 1 | ## Script (Python) "isManager" |
---|
[600] | 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
| 7 | ##parameters=student=None |
---|
| 8 | ##title= |
---|
| 9 | ## |
---|
[805] | 10 | # $Id: isManager.py 888 2006-11-17 21:28:48Z henrik $ |
---|
[603] | 11 | |
---|
[885] | 12 | mtool = context.portal_membership |
---|
| 13 | roles = mtool.getAuthenticatedMember().getRolesInContext(context) |
---|
[888] | 14 | return "SectionManager" in roles or\ |
---|
| 15 | "Manager" in roles |
---|
Note: See
TracBrowser for help on using the repository browser.