Changeset 2538


Ignore:
Timestamp:
5 Nov 2007, 16:19:18 (17 years ago)
Author:
joachim
Message:

redirect none SectionOfficers? to anonymous_view (in custom)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/add_student.py

    r2503 r2538  
    1414import logging
    1515logger = logging.getLogger('Skins.add_student')
     16
     17if mtool.isAnonymousUser() or not context.isSectionOfficer():
     18    return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
    1619
    1720validate = REQUEST.has_key("cpsdocument_edit_button") and\
Note: See TracChangeset for help on using the changeset viewer.