Last change
on this file since 2348 was
1596,
checked in by joachim, 18 years ago
|
merged changes from trunk to joachim-event-branch
|
File size:
550 bytes
|
Rev | Line | |
---|
[1596] | 1 | ## Script (Python) "isCourseAdviser" |
---|
[1513] | 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
| 7 | ##parameters= |
---|
| 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | # $Id: isClearanceOfficer.py 1087 2006-12-18 22:13:31Z joachim $ |
---|
| 11 | if context.isStudent(): |
---|
| 12 | return False |
---|
| 13 | mtool = context.portal_membership |
---|
| 14 | roles = mtool.getAuthenticatedMember().getRolesInContext(context) |
---|
[1558] | 15 | <<<<<<< .working |
---|
| 16 | return str("CourseAdviser" in roles) |
---|
| 17 | ======= |
---|
| 18 | return str("CourseAdviser" in roles) |
---|
[1515] | 19 | return "CourseAdviser" in roles |
---|
[1558] | 20 | >>>>>>> .merge-rechts.r1557 |
---|
[1515] | 21 | |
---|
Note: See
TracBrowser for help on using the repository browser.