Changeset 10589


Ignore:
Timestamp:
5 Sep 2013, 12:35:14 (11 years ago)
Author:
Henrik Bettermann
Message:

Hide application fee from applicants.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/applicants
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py

    r10587 r10589  
    5050    def form_fields(self):
    5151        form_fields = super(CustomApplicantsContainerPage, self).form_fields
    52         if self.request.principal.id == 'zope.anybody':
     52        usertype = getattr(self.request.principal, 'user_type', None)
     53        if self.request.principal.id == 'zope.anybody' or  \
     54            usertype in ('applicant', 'student'):
    5355            return form_fields.omit('application_fee')
    5456        return form_fields
Note: See TracChangeset for help on using the changeset viewer.